]> git.mdlowis.com Git - proto/labwc.git/commitdiff
spawn.c: s/exit()/_exit()/
authorJohan Malm <jgm323@gmail.com>
Mon, 15 Feb 2021 17:57:20 +0000 (17:57 +0000)
committerJohan Malm <jgm323@gmail.com>
Mon, 15 Feb 2021 17:57:20 +0000 (17:57 +0000)
src/common/spawn.c

index d42061b7278973e5fcd0bb9d1cca123e704ec110..cfeb58ba808bafa1d74726fae0ed76bf85d71b34 100644 (file)
@@ -45,11 +45,11 @@ spawn_async_no_shell(char const *command)
                grandchild = fork();
                if (grandchild == 0) {
                        execvp(argv[0], argv);
-                       exit(0);
+                       _exit(0);
                } else if (grandchild < 0) {
                        warn("unable to fork()");
                }
-               exit(0);
+               _exit(0);
        default:
                break;
        }