mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
- remove extra/unneeded function call. testing svn
This commit is contained in:
parent
5043ea1986
commit
778ee6da60
@ -136,19 +136,10 @@ static void inetbind(void)
|
|||||||
movefd(s, 0);
|
movefd(s, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void delpidfile(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Usually nobody has no write/delete access to directory /var/run/
|
|
||||||
* therefore if file cannot be deleted, it is truncated
|
|
||||||
*/
|
|
||||||
if (unlink(PIDFILE) < 0)
|
|
||||||
close(open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void handlexitsigs(int signum)
|
static void handlexitsigs(int signum)
|
||||||
{
|
{
|
||||||
delpidfile();
|
if (unlink(PIDFILE) < 0)
|
||||||
|
close(open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644));
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user