[INN-COMMITTERS] inn/lib (xsignal.c Makefile)
kondou at vix.com
kondou at vix.com
Tue Sep 21 03:35:56 UTC 1999
Date: Monday, September 20, 1999 @ 20:35:56
Author: kondou
Update of /dist1/cvs/isc/inn/inn/lib
from pub3.rc.vix.com:/dist1/isc/kondou/CURRENT/inn/lib
Modified Files:
Makefile
Added Files:
xsignal.c
----------------------------- Log Message -----------------------------
lib/Makefile:
lib/xsignal.c:
- From: Heath Kehoe <hakehoe at norand.com>
- Created a new libinn function xsignal(), which implements a signal()
function using sigaction(). This is because HP/UX (along with other
SYSV-derived systems) has an "unreliable" signal. You have to re-set
the signal handler when a signal goes off, and a signal may cause
a system call to fail (with EINTR). Using sigaction, you don't have
these problems.
I created a symbol USE_SIGACTION, that when defined, the xsignal
function does a call to sigaction. Otherwise, xsignal simply uses
signal. (The innfeed source already has something like this.)
Currently, USE_SIGACTION only gets defined for HP/UX (in clibrary.h).
Perhaps we could define it through configure, but I don't know
enough about autoconf to set it up right now.
More information about the inn-committers
mailing list