diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-06-07 14:10:21 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-06-07 14:10:21 +0000 |
commit | 4aafeb0da2462faa3e4b191cd56ed6bba362e0fa (patch) | |
tree | b7e2bc2e6e97881090ace578e1d3acb173f37cdd /svr-main.c | |
parent | 32af5c267e44c5edb20e02b6de066021e4c58b30 (diff) |
Add -P pidfile patch from Swen Schillig
--HG--
extra : convert_revision : 2dd1bf9162d8fc4c14b33c5b3c6ca3cbe2ecd587
Diffstat (limited to 'svr-main.c')
-rw-r--r-- | svr-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -146,7 +146,7 @@ void main_noinetd() { } /* create a PID file so that we can be killed easily */ - pidfile = fopen(DROPBEAR_PIDFILE, "w"); + pidfile = fopen(svr_opts.pidfile, "w"); if (pidfile) { fprintf(pidfile, "%d\n", getpid()); fclose(pidfile); @@ -189,7 +189,7 @@ void main_noinetd() { val = select(maxsock+1, &fds, NULL, NULL, &seltimeout); if (exitflag) { - unlink(DROPBEAR_PIDFILE); + unlink(svr_opts.pidfile); dropbear_exit("Terminated by signal"); } |