ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Unix program not receiving SIGPIPE interrupt.

Post new topic  Reply to topic
 Unix program not receiving SIGPIPE interrupt. « View previous topic :: View next topic » 
Author Message
dispatcher
PostPosted: Fri May 05, 2006 8:55 am    Post subject: Unix program not receiving SIGPIPE interrupt. Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Unix program not receiving SIGPIPE interrupt.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.