diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 15:09:09 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 15:09:09 +0100 |
commit | 0bd376639f30e2e2f623887afccb6facdeb46043 (patch) | |
tree | 42b95d9314ace0e73ab792a3d412df82c421e821 | |
parent | fix dup_at_least_3: must duplicate at least once (diff) | |
download | slibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.gz slibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.bz2 slibc-0bd376639f30e2e2f623887afccb6facdeb46043.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/unistd/daemonise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/daemonise.c b/src/unistd/daemonise.c index 2936e31..886c30d 100644 --- a/src/unistd/daemonise.c +++ b/src/unistd/daemonise.c @@ -55,7 +55,7 @@ static char* __pidfile = NULL; static int dup_at_least_3(int old) { int intermediary[] = { -1, -1, -1 }; - int i, saved_errno; + int i = 0, saved_errno; do { |