Description of problem: acpid leaks file descriptors Version-Release number of selected component (if applicable): acpid-1.0.4-5 How reproducible: always Steps to Reproduce: 1. cat test.sh for i in `seq 5`;do acpi_listen & done killall -qqq acpi_listen 2>&1 >/dev/null sleep 1 /usr/sbin/lsof|grep acpi|grep socket|wc -l 2. sh test.sh 3. sh test.sh Actual results: acpid leaks fds Expected results: acpid should not leak fd Additional info: patch attached. acpid uses unix sockets for ipc. It seems these sockets are not checked until unless there is an acpi event generated. any client which exits before an acpi event has been generated will leave around an open fd, which will not be closed until when we try to write to it.
Created attachment 301812 [details] close fd
*** Bug 306981 has been marked as a duplicate of this bug. ***
patch attached is based on upstream code.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-0091.html