Quote:> I'm trying to build a server socket forking a child process, which will
> execute a child program. This child program will be writing on stdin
> from time to time. How can the child process get to know when the child
> program's writing is done ? which means do i have to use ?
If the child exits just after it's finished with the file, the parent can
wait for the SIGCHLD signal.
If the child continues after finishing, you can construct a pipe between
them and send a message, or allocate shared memory or a queue and send a
message that way.
the lost and breathless, lonely brother. | Cupertino, California
Both crone and child, now crying wild, | (xxx)xxx-xxxx 95015
her clinging clay will clothe and smother. | I don't use no smileys