]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Close all fds in startone
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Mar 2014 00:44:12 +0000 (20:44 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Mar 2014 00:56:23 +0000 (20:56 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/startone.c

index d2879f6244b6d47907fe4f8fffc2ae7ac8c310eb..26a61c59ea20bd47e5f93c6efa65fca6b2d82e28 100644 (file)
@@ -163,6 +163,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
        c->want_daemonize(c, false);
+       c->want_close_all_fds(c, true);
        pid_t pid = fork();
        if (pid < 0) {
                fprintf(stderr, "%d: fork failed\n", __LINE__);