lkml.org 
[lkml]   [1999]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[OT][Sorry][More info]Kernel 2.2.x bug. Standard output not flushed before fork
Hi all!

I said:

>This is not good, isn't it?. Well, I have a program that
>creates one o more process. Before fork, the father
>process write some messages to standard output and then it
>creates some sons. The problem is sons inherit
>father's non flushed standard output, so father's messages
>appear two o more times. If I flush standard output before
>fork(), all is fine -- that is, father's messages appear
>once.
>
>Sorry, but I haven't got enough kernel hacker skills to fix
>it.
Sorry. I thought that this was bad because the above problem arose when
I redirected standard output to a file. When standard output went to
tty, there wasn't any problem.

Sorry again. Best regards.
--
Prof. Juan Piernas Cánovas
Departamento de Ingeniería y Tecnología de Computadores
Facultad de Informática. Universidad de Murcia
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel.: +34-68-364633 Fax: +34-68-364151
email: piernas@ditec.um.es

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.044 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site