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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Mar 22 13:44:00 UTC 2010


Author: rousseau
Date: Mon Mar 22 13:43:59 2010
New Revision: 4839

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4839
Log:
Call at_exit() instead of exit() since the libC of Android is bogus and
atexit() does not work as it should.

Thanks to Patrice Angelini for the bug report.

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=4839&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Mon Mar 22 13:43:59 2010
@@ -94,7 +94,7 @@
 	if (rsp == -1)
 	{
 		Log1(PCSC_LOG_CRITICAL, "Error initializing pcscd.");
-		exit(-1);
+		at_exit();
 	}
 
 	/*
@@ -105,7 +105,7 @@
 	if (rv == -1)
 	{
 		Log1(PCSC_LOG_CRITICAL, "Error initializing pcscd.");
-		exit(-1);
+		at_exit();
 	}
 
 	(void)signal(SIGPIPE, SIG_IGN);
@@ -176,7 +176,7 @@
 			/* now stop all the drivers */
 			RFCleanupReaders();
 			ContextsDeinitialize();
-			exit(0);
+			at_exit();
 		}
 	}
 }




More information about the Pcsclite-cvs-commit mailing list