Skip to content

Commit f20db4c

Browse files
committed
0.1
0.1
1 parent 8a46171 commit f20db4c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/service.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static bool lock_pid_file(const char* pflag)
5454
{
5555
if((errno == EACCES) || (errno == EAGAIN))
5656
{
57+
close(fd);
5758
return false;
5859
}
5960
else
@@ -108,6 +109,7 @@ static bool check_pid_file(const char* pflag)
108109
{
109110
if((errno == EACCES) || (errno == EAGAIN))
110111
{
112+
close(fd);
111113
return false;
112114
}
113115
else
-206 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)