mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
plugin: Only close() PID file descriptors >0, skip -1
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ static plugin_t plugin = {
|
||||
|
||||
static void setup(void)
|
||||
{
|
||||
if (plugin.io.fd)
|
||||
if (plugin.io.fd > 0)
|
||||
close(plugin.io.fd);
|
||||
|
||||
plugin.io.fd = inotify_init1(IN_NONBLOCK | IN_CLOEXEC);
|
||||
|
||||
Reference in New Issue
Block a user