On 11/1/06, Philippe Gerum <[EMAIL PROTECTED]> wrote:
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.

Philippe.


This was indeed the case. I'm sorry to ask such a (afterwards) trivial question. I couldn't remember it happened to me ever before, so I assumed it had something to do with Xenomai. As it turns out, it doesn't.

Thanks a lot!

Frits
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to