Hello, If udp-receiver is writing to a pipe and the pipe fails, udp-receiver will incorrectly exit with a returncode of zero. This is easily tested with a trivial pipe program that copies stdin to stdout, but exits with a nonzero status upon encountering eof. Adding the following to startReceiver() in udpr-negotiate.c is sufficient to fix this behavior: <---- cut here int ret; ... if(pipePid) { ret=udpc_waitForProcess(pipePid, "Pipe"); } ... return ret; <---- cut here Regards, George Coulouris National Center for Biotechnology Information (contractor)
On 2010-08-04 18:34, George Coulouris wrote:
Hello,
If udp-receiver is writing to a pipe and the pipe fails, udp-receiver will incorrectly exit with a returncode of zero. This is easily tested with a trivial pipe program that copies stdin to stdout, but exits with a nonzero status upon encountering eof.
Adding the following to startReceiver() in udpr-negotiate.c is sufficient to fix this behavior:
<---- cut here
int ret; ... if(pipePid) { ret=udpc_waitForProcess(pipePid, "Pipe"); } ... return ret;
<---- cut here
Regards, George Coulouris National Center for Biotechnology Information (contractor)
This is now fixed in version 20120424, thanks for the note (Sorry for the slow reply, somehow I missed your mail the first time around...) Regards, Alain
participants (2)
-
Alain Knaff -
George Coulouris