[merp] Remove extraneous waitpid invocation (mono/mono#17723)
authorAlexis Christoforides <alexis@thenull.net>
Fri, 8 Nov 2019 16:40:04 +0000 (11:40 -0500)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2019 16:40:04 +0000 (11:40 -0500)
The extraneous call basically guarantees that the call right after will fail. Fixes merp stating that its process has failed when it hasn't.

Commit migrated from https://github.com/mono/mono/commit/23f2baa71ed905e3298c10189adec8134bc6ed7c

src/mono/mono/utils/mono-merp.c

index 514b04b..a3736ab 100644 (file)
@@ -343,7 +343,6 @@ mono_merp_send (MERPStruct *merp)
                exit (-1);
        } else {
                int status;
-               waitpid (pid, &status, 0);
                int exit_status = FALSE;
 
                while (TRUE) {