diff options
author | Kozlov Dmitry <dima@server> | 2010-09-27 13:27:12 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-27 13:27:12 +0400 |
commit | 59d9616d73973c529b08578f3596acaa081cd8bf (patch) | |
tree | 947fd1ab82c41beb57bba81e4e51ee5a4951bc6f /accel-pptpd/main.c | |
parent | f122327288ae4429bb88a0fefdcef0bf80f54023 (diff) | |
download | accel-ppp-59d9616d73973c529b08578f3596acaa081cd8bf.tar.gz accel-ppp-59d9616d73973c529b08578f3596acaa081cd8bf.zip |
bug fixes
Diffstat (limited to 'accel-pptpd/main.c')
-rw-r--r-- | accel-pptpd/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/accel-pptpd/main.c b/accel-pptpd/main.c index afd6b588..b543f0d8 100644 --- a/accel-pptpd/main.c +++ b/accel-pptpd/main.c @@ -109,7 +109,7 @@ int main(int argc, char **argv) } if (pid_file) { - FILE *f = fopen("pid_file", "w"); + FILE *f = fopen(pid_file, "w"); if (f) { fprintf(f, "%i", getpid()); fclose(f); @@ -128,10 +128,11 @@ int main(int argc, char **argv) sigdelset(&set, SIGFPE); sigdelset(&set, SIGILL); sigdelset(&set, SIGBUS); - sigdelset(&set, 35); - sigdelset(&set, 36); + sigdelset(&set, SIGHUP); sigdelset(&set, SIGIO); sigdelset(&set, SIGINT); + sigdelset(&set, 35); + sigdelset(&set, 36); pthread_sigmask(SIG_SETMASK, &set, NULL); sigemptyset(&set); |