blob: 94cf796a31a519d7b91b7801a0db4492bf320fd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- src/signals.c
+++ src/signals.c
@@ -129,7 +129,7 @@
if (!Persistent && sig != SIGTERM)
dhcpStop();
deletePidFile();
- exit(0);
+ exit(sig);
}
/*****************************************************************************/
void signalSetup()
--- src/dhcpcd.c
+++ src/dhcpcd.c
@@ -427,7 +427,7 @@
if ( killFlag ) killPid(killFlag);
if ( ! TestCase ) checkIfAlreadyRunning();
if ( versionFlag ) print_version();
- openlog(PACKAGE,LOG_PID|(DebugFlag?LOG_CONS:0),LOG_LOCAL0);
+ openlog(PACKAGE,LOG_PID|(DebugFlag?LOG_CONS:0)|LOG_PERROR,LOG_LOCAL0);
signalSetup();
if ( mkdir(ConfigDir,S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) && errno != EEXIST )
{
|