On Wed, 2006-11-01 at 14:45 +0100, Frits de Klark wrote: > Hello everyone, > > another question from me. Right now I have a very simple (and dirty) > server program which listens for an incoming tcp connection, then > starts a realtime task which sends a string to the connected client > periodically. This all works fine, until I close the connection from > the client side; In that case my server program just shuts down. It > just returns to the command prompt (from where I started the server > program) without any messages. > > I noticed that this happens when my realtime task calls send() to send > the string to the client. I do check on send() for a return value, but > it looks like the program quits before this return value can be > checked (i.e. somewhere during the send() call). >
The sender may receive SIGPIPE. Run your application over GDB to verify that. > Does anyone has any idea where this behaviour might come from? > > Thanks very much. > > Best regards, > > Frits > _______________________________________________ > Xenomai-help mailing list > [email protected] > https://mail.gna.org/listinfo/xenomai-help -- Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
