LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2004, 12:18 PM   #1
cgobbe
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Closing serial tty device


I am having trouble configuring a serial line.

using:
Mandrake Linux release 9.2 (FiveStar) for i586
Kernel 2.4.22-10mdk on an i586 / ttyS1

"agetty" is configured on that line with a remote terminal device connected.

Almost everything works OK. I have modified "stty" settings give appropriate handshake signals and no data is lost through buffer overflow.

BUT...

When the shell or other process is closed, what remains in the buffer is discarded.

To test this I will flood the output, then immediately exit before all the data has been output to the terminal and ...

the end of the buffer is lost.

What I want is for the process and the device to remain open until it is happy that all data in the buffer has been output.

How do I do this?
 
Old 09-03-2004, 01:47 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
possibly:

-opost

(just a guess)
 
Old 09-03-2004, 05:19 PM   #3
cgobbe
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks foo,

My understanding of "-opost" is that it suppresses ("-") "output postprocessing"

I think that means: no tabs will be converted to spaces, NL converted to CR/LF's etc (as specified by other parameters) on the data output to the device.

I may be wrong...

Are you saying it affects how/when the device is closed?
I just think it turns on/off a filterering/translation feature of the line discipline.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[AIX 4.3] Adding a serial tty with smitty MD3 AIX 9 01-21-2006 06:48 AM
Freeing the Sound Device Without Closing App LinuxGeek Linux - Software 3 12-03-2005 02:19 PM
Problems with tty and framebuffer device jaakkop Linux - General 0 08-03-2004 10:49 AM
How to turn on log for tty device yan Linux - General 0 12-08-2003 05:52 PM
Serial Ports (tty´s) aqoliveira Linux - Hardware 4 06-21-2002 11:06 AM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration