commit 0c6b4c7a43f3ecec86d7d43f2cb81f3ebe5f5dec
parent c30fef8943935881c32d75e6023746e0078b7ed5
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 28 Feb 2011 20:42:39 +0100
Now doing it right.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/rfkilld.c b/rfkilld.c
@@ -78,7 +78,8 @@ sighandler(int sig)
case SIGQUIT:
case SIGABRT:
case SIGTERM:
- closelog();
+ if (dolog)
+ closelog();
running = 0;
break;
default:
@@ -165,7 +166,8 @@ main(int argc, char *argv[])
}
}
- closelog();
+ if (dolog)
+ closelog();
exit(EXIT_SUCCESS);
}