projects
/
dss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix --config-file for relative paths.
[dss.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index 0b201a8aa07b617e6eaea506cae4f096dc377e8a..ad73061c14ec5916284f2ab67438306d6484827d 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-1,8
+1,4
@@
-/*
- * Copyright (C) 1997-2010 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* SPDX-License-Identifier: GPL-2.0 */
/** \file daemon.c Some helpers for programs that detach from the console. */
/** \file daemon.c Some helpers for programs that detach from the console. */
@@
-64,7
+60,6
@@
int daemon_init(void)
/* become session leader */
if (setsid() < 0)
goto err;
/* become session leader */
if (setsid() < 0)
goto err;
- umask(0);
null = open("/dev/null", O_RDWR);
if (null < 0)
goto err;
null = open("/dev/null", O_RDWR);
if (null < 0)
goto err;