]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
process-util: drop duplicate assertions
authorMike Yuan <me@yhndnzj.com>
Wed, 8 Jan 2025 12:50:51 +0000 (13:50 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 11 Jan 2025 14:53:13 +0000 (15:53 +0100)
src/basic/process-util.c

index 6af1349dd5697e0b0f462eebed44f14e5089298b..6ec9a5c248f9a0c92aab9eedf240b3a540ff01ff 100644 (file)
@@ -1504,9 +1504,6 @@ int safe_fork_full(
         }
 
         if (FLAGS_SET(flags, FORK_DETACH)) {
-                assert(!FLAGS_SET(flags, FORK_WAIT));
-                assert(!ret_pid);
-
                 /* Fork off intermediary child if needed */
 
                 r = is_reaper_process();