From coulouri at ncbi.nlm.nih.gov Wed Aug 4 18:34:06 2010 From: coulouri at ncbi.nlm.nih.gov (George Coulouris) Date: Wed, 4 Aug 2010 12:34:06 -0400 Subject: [Udpcast] exit code not passed if rx pipe fails Message-ID: <4C59967E.4060101@ncbi.nlm.nih.gov> 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)