[Pcsclite-cvs-commit] r6044 - /trunk/PCSC/src/pcscdaemon.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sat Oct 15 18:24:15 UTC 2011
Author: rousseau
Date: Sat Oct 15 18:24:15 2011
New Revision: 6044
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6044
Log:
signal_trap(): if we exit after a SIGALRM then exit with EXIT_SUCCESS
systemd should be happier with a process exiting normally
Modified:
trunk/PCSC/src/pcscdaemon.c
Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=6044&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Sat Oct 15 18:24:15 2011
@@ -717,6 +717,12 @@
{
Log1(PCSC_LOG_INFO, "Direct suicide");
at_exit();
+ }
+
+ if (SIGALRM == sig)
+ {
+ /* normal exit without error */
+ ExitValue = EXIT_SUCCESS;
}
/* the signal handler is called several times for the same Ctrl-C */
More information about the Pcsclite-cvs-commit
mailing list