From: Baptiste Daroussin Date: Thu, 10 Nov 2022 17:05:08 +0000 (+0100) Subject: mlmmj-maintd: drop closefrom(2) X-Git-Tag: RELEASE_1_4_0a1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f28fc418b7fa9eaf42471dead1a54602cc84c00;p=thirdparty%2Fmlmmj.git mlmmj-maintd: drop closefrom(2) At this point it is not useful, it is up the progrom that execute mlmmj-maintd to not leak its fd. --- diff --git a/src/mlmmj-maintd.c b/src/mlmmj-maintd.c index 3d57bbe1..74481e22 100644 --- a/src/mlmmj-maintd.c +++ b/src/mlmmj-maintd.c @@ -78,8 +78,6 @@ static int mydaemon() err(EXIT_FAILURE, "Unable to become a daemon"); } - closefrom(3); - return 0; }