diff options
| author | Roy Marples <roy@marples.name> | 2007-04-10 11:27:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-04-10 11:27:37 +0000 |
| commit | 96ccff7a0659090f6c4121fe6892a1f37668bafa (patch) | |
| tree | 36328e3edd14fbb40fedda3aaa846f76ca4d623a /signals.c | |
| parent | 000ad4a5ccc4e82557e8252a928afc0fc79b2c74 (diff) | |
| download | dhcpcd-96ccff7a0659090f6c4121fe6892a1f37668bafa.tar.xz | |
Fix indentation
Diffstat (limited to 'signals.c')
| -rw-r--r-- | signals.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ static void signal_handler (int sig) wait (0); return; } - + if (send (signal_pipe[1], &sig, sizeof (sig), MSG_DONTWAIT) < 0) logger (LOG_ERR, "Could not send signal: %s", strerror (errno)); } @@ -61,9 +61,9 @@ void signal_setup(void) /* Stop any scripts from inheriting us */ for (i = 0; i < 2; i++) if ((flags = fcntl (signal_pipe[i], F_GETFD, 0)) < 0 || - fcntl (signal_pipe[i], F_SETFD, flags | FD_CLOEXEC) < 0) + fcntl (signal_pipe[i], F_SETFD, flags | FD_CLOEXEC) < 0) logger (LOG_ERR ,"fcntl: %s", strerror (errno)); - + signal (SIGHUP, signal_handler); signal (SIGALRM, signal_handler); signal (SIGTERM, signal_handler); |
