]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-maintd: drop closefrom(2)
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 10 Nov 2022 17:05:08 +0000 (18:05 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 10 Nov 2022 17:05:08 +0000 (18:05 +0100)
At this point it is not useful, it is up the progrom that execute
mlmmj-maintd to not leak its fd.

src/mlmmj-maintd.c

index 3d57bbe110cc653cf6c2fa92447fe8ce10de9c78..74481e22d7e310c81679d4376b33d24aaac6abdf 100644 (file)
@@ -78,8 +78,6 @@ static int mydaemon()
                err(EXIT_FAILURE, "Unable to become a daemon");
        }
 
-       closefrom(3);
-
        return 0;
 }