aboutsummaryrefslogtreecommitdiff
path: root/darwin-bootstrap/posixspawn-hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'darwin-bootstrap/posixspawn-hook.c')
-rw-r--r--darwin-bootstrap/posixspawn-hook.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/darwin-bootstrap/posixspawn-hook.c b/darwin-bootstrap/posixspawn-hook.c
index d2a79f4..e4f2e72 100644
--- a/darwin-bootstrap/posixspawn-hook.c
+++ b/darwin-bootstrap/posixspawn-hook.c
@@ -64,6 +64,9 @@ static bool spawn_unrestrict(pid_t pid, bool should_resume, bool is_exec) {
ib_log("posixspawn-hook: couldn't start unrestrict - oh well...");
return false;
}
+ if (IB_VERBOSE)
+ ib_log("unrestrict pid: %d; should_resume=%d is_exec=%d",
+ prog_pid, should_resume, is_exec);
int xstat;
/* reap intermediate to avoid zombie - if it doesn't work, not a big deal */
if (waitpid(prog_pid, &xstat, 0) == -1)
@@ -304,8 +307,6 @@ static int hook_posix_spawn_generic(__typeof__(posix_spawn) *old,
}
if (fcntl(255, F_SETFD, FD_CLOEXEC))
goto crap;
- if (IB_VERBOSE)
- ib_log("spawning unrestrict");
if (!spawn_unrestrict(getpid(), !was_suspended, true))
goto skip;
}