Question about termios parameters

From: John Chris Wren (
Date: Tue Jul 24 2001 - 14:32:57 EST

        This may not be the best place to ask this, but I've done the research,
can't come up with an answer, and don't know a better group of people to

        I have an embedded Linux device (2.2.12 kernel, BlueCat distro) that uses a
serial port for the console. When the box comes up, rc.sysinit starts the
application as a detached process (my_program&). When the program spits out
periodic status reports, the \n is not being mapped to CR-LF (i.e., I'm
getting only linefeeds).

        Once you log on to the box (via login, into bash), the output becomes
correctly cooked.

        I've tried twiddling termios parameters for OPOST and ONLCR, but it has no
effect. Trying to have the application run "stty -a" via a system() call
reports an error regarding it can't get the parameters for stdin.

        What parameters are required to be set for a detached process started via
init to correctly have it's output mapped from \n to CR-NL?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:18 EST