Posted: Fri May 05, 2006 8:55 am Post subject: Unix program not receiving SIGPIPE interrupt.
Newbie
Joined: 04 May 2006 Posts: 1
My unix program runs under the inet daemon and works with the standard I/O redirected to the client. The program updates a remote terminal with the time every minute. If the remote client disconnects, the failed write to standard out is suppose to cause a signal SIGPIPE to my application. I should then be able to log the disconnect to a file and exit gracefully. The program works well until I compile it for MQSeries client (i.e., makefile options: MQMLIB = /opt/mqm/lib and LIBS = -lmqic -lmqmcs -lmqmzse -lc -lm -lsocket). My program is not receiving the SIGPIPE and is leaving copies of the program lying around from clients that are no longer there. What other mechanism is there for my program to know when a client has disconnected?
Thanks in advance. _________________ be careful out there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum