lkml.org 
[lkml]   [1996]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Exit signal received with output pending
Date
David Fox writes:

> The program below demonstrates what I believe is a Linux bug. It
> starts a child process and starts reading the child's standard output.
> It exits when it receives a SIGCHLD signal indicating that the child
> has exited. It seems to me that this signal should not be received
> until end of file is received on the child's standard output.

This is not a bug. When the parent receives SIGCHLD, the child has
exited and has written all its output on stdout. On the other hand, the
pipe connecting the parent and the child may still contain data. AFAIK
this is standard Unix behaviour.

Thierry.


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