2009/8/31 Douglas E. Engert <[email protected]>: > pcscdeamon.c sets up a signal handler for SIGUSR1 to call signal_reload. > But on Solaris (at least and it looks like HP too) the man pages say: > > If signal()is used, disp is the address of a signal handler, and sig > is > not SIGILL, SIGTRAP, or SIGPWR, the system first sets the > signal's disposition to SIG_DFL before executing the signal > handler. > > Thus the first use of pcscd -H works, but the second time causes the deamon > to not cache the signal and end. > > This looks like this has been in previous versions as well. > The patch has the signal handler reenable the signal.
Patch applied in revision 4375. http://lists.alioth.debian.org/pipermail/pcsclite-cvs-commit/2009-September/003893.html Thanks. > Use of sigaction might be a better solution. I am no sure how to use sigaction(2) for this problem. So unless you find a problem with signal(2) I will not change the code. Regards, -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
