diff options
author | comex | 2015-01-29 21:31:11 -0500 |
---|---|---|
committer | comex | 2015-01-29 21:31:11 -0500 |
commit | 6fecd889e388f7642969d58bfe429a756d29413f (patch) | |
tree | f5f28651b14e46294df34040428303f156163f29 /ios-bootstrap/inject-into-launchd.c | |
parent | "Fix" broken launchd injection stuff. (diff) | |
download | substitute-6fecd889e388f7642969d58bfe429a756d29413f.tar.gz |
a bunch of stuff that should have been committed separately
Diffstat (limited to 'ios-bootstrap/inject-into-launchd.c')
-rw-r--r-- | ios-bootstrap/inject-into-launchd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ios-bootstrap/inject-into-launchd.c b/ios-bootstrap/inject-into-launchd.c index 1da4a02..5624cbc 100644 --- a/ios-bootstrap/inject-into-launchd.c +++ b/ios-bootstrap/inject-into-launchd.c @@ -74,4 +74,14 @@ int main(UNUSED int argc, char **argv) { substitute_strerror(ret), error); return 0; } + /* wait for it to finish */ + static struct { + mach_msg_header_t hdr; + mach_msg_trailer_t huh; + } msg; + kr = mach_msg_overwrite(NULL, MACH_RCV_MSG, 0, sizeof(msg), port, + MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL, + &msg.hdr, 0); + if (kr) + syslog(LOG_EMERG, "mach_msg_overwrite: %x", kr); } |