pcscd: do not write to a closed file handle
In case of receiving a signal to terminate after init has been
completed, at_exit() is called and tries to write to a closed pipe.
This patch simply set pipe to -1 in order to invalidate it after
closing. Pipe value checks are already present in the code.
(upstream git commit 79410aac02a370d6d92106c015f01ec1491d31ac)
tokenparser.l: config.h is a local file
Use "config.h" instead of <config.h> so that the config.h is found
in the local source directory.
(upstream git commit 1f37c57feb81e8d263c696a845c4d054bdc11d0c)
- Fix a problem when only serial drivers are used (no hotplug/USB
driver)
- increase log buffer size from 160 to 2048. Some "long" log lines where
truncated.
- Fix redirection of stdin, stdout and stderr to /dev/null when pcscd is
started as a daemon (default)
- Some other minor improvements and bug corrections
- Define NO_REGRESS
- replace all LOG_DEBUG to LOG_INFO
- use snprintf() instead of sprintf() in debuglog.c
- stop if /tmp/pcsc already exists
- clean and remove /tmp/pcsc on exit
Patches by Dr. Ludovic Rousseau <ludovic.rousseau@free.fr> and
already submitted to upstream project. Thanks.
---
PC/SC Architecture for most Unix type operating systems. Allows
easy porting of Windows smartcard software to other operating
systems. Supports many types of serial, PCMCIA, and USB smartcard
readers and cryptographic tokens.
WWW: http://www.linuxnet.com/
Tested by Dr. Ludovic Rousseau and me.