[Toybox] signal or xsignal for sigatexit()?

Rob Landley rob at landley.net
Fri Sep 21 15:52:14 PDT 2018


signal() defaults to SA_RESTART, xsignal() uses sigaction() which does not. I'm
not sure which is correct? (It's currently using signal() and things seem ok
with what?)

*shrug* The readall() code assumes no SA_RESTART. The main downside of signal by
default I'm aware of is having to poll before read() when you want a timeout via
alarm() (unless you siglongjmp)...

Just wondering if anybody out there better than me at C has an opinion. :)

Rob



More information about the Toybox mailing list