X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=daemon.c;h=709785b437041654e3cacd2fd4f252aea8fa4173;hp=0b201a8aa07b617e6eaea506cae4f096dc377e8a;hb=HEAD;hpb=3e8d431fb78e95c0d595b6e7e37ff248c0fa4edd 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;