[Y-devel] Ignoring SIGPIPE

Maurice van der Pot griffon26 at kfk4ever.com
Sun Feb 22 15:37:38 GMT 2004


Hey guys,

Upon arrival of SIGPIPE, the program is terminated. I think 
errors when reading/writing will be handled by the caller of
the read/write function, so a call signal(SIGPIPE, SIG_IGN)
should be done somewhere during initialisation.

Is it ok to disable signal handling for this signal or was
anyone planning to do error handling with signals instead
of return codes?

Best regards,
Maurice.

P.S.: To see what happens upon reception of SIGPIPE do the 
following:
- start Y
- start yclock
- suspend yclock (ctrl-z)
- send it to the background (bg)
- kill yclock
- Y will be terminated because of a SIGPIPE




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved