X-Git-Url: http://git.tuebingen.mpg.de/dss.git/log?a=blobdiff_plain;f=daemon.c;h=ad73061c14ec5916284f2ab67438306d6484827d;hb=a49a95efca7e3b22c1b06b38319fdfbeea8c7fe2;hp=0b201a8aa07b617e6eaea506cae4f096dc377e8a;hpb=3e8d431fb78e95c0d595b6e7e37ff248c0fa4edd;p=dss.git diff --git a/daemon.c b/daemon.c index 0b201a8..ad73061 100644 --- a/daemon.c +++ b/daemon.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 1997-2010 Andre Noll - * - * 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. */ @@ -64,7 +60,6 @@ int daemon_init(void) /* become session leader */ if (setsid() < 0) goto err; - umask(0); null = open("/dev/null", O_RDWR); if (null < 0) goto err;