[Pcsclite-cvs-commit] r5009 - /trunk/PCSC/src/pcscdaemon.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Jun 17 09:10:08 UTC 2010


Author: rousseau
Date: Thu Jun 17 09:10:06 2010
New Revision: 5009

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5009
Log:
main(): in case of auto exit create a new session so that Ctrl-C on the
application will not also quit pcscd

Thanks to Thierry Fabre for reporting the bug

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=5009&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Thu Jun 17 09:10:06 2010
@@ -370,6 +370,10 @@
 	{
 		int pid;
 
+		/* create a new session so that Ctrl-C on the application will
+		 * not also quit pcscd */
+		setsid();
+
 		/* fork() so that pcscd always return in --auto-exit mode */
 		pid = fork();
 		if (-1 == pid )




More information about the Pcsclite-cvs-commit mailing list