[Pcsclite-cvs-commit] r4236 - /trunk/PCSC/src/utils.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Mon Jun 1 07:42:23 UTC 2009
Author: rousseau
Date: Mon Jun 1 07:42:22 2009
New Revision: 4236
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4236
Log:
StatSynchronizeContext(): do not call mkfifo(3) since the fifo file is
already created by another thread.
Modified:
trunk/PCSC/src/utils.c
Modified: trunk/PCSC/src/utils.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/utils.c?rev=4236&op=diff
==============================================================================
--- trunk/PCSC/src/utils.c (original)
+++ trunk/PCSC/src/utils.c Mon Jun 1 07:42:22 2009
@@ -155,7 +155,7 @@
/**
* Sends an asynchronous event to a specific waiting client
*
- * Just write 1 byte to a specific fifo in PCSCLITE_EVENTS_DIR and remove the file
+ * Just write 1 byte to an (existing) specific fifo in PCSCLITE_EVENTS_DIR
*
* This function must be secured since the files are created by the library
* or any non privileged process. We must not follow symlinks for example
@@ -169,7 +169,6 @@
(void)snprintf(filename, sizeof(filename), "%s/event.%d.%ld",
PCSCLITE_EVENTS_DIR, SYS_GetPID(), hContext);
- (void)mkfifo(filename, 0644);
fd = SYS_OpenFile(filename, O_WRONLY, 0);
if (fstat(fd, &fstat_buf))
More information about the Pcsclite-cvs-commit
mailing list