From 6fecd889e388f7642969d58bfe429a756d29413f Mon Sep 17 00:00:00 2001 From: comex Date: Thu, 29 Jan 2015 21:31:11 -0500 Subject: a bunch of stuff that should have been committed separately --- ios-bootstrap/inject-into-launchd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ios-bootstrap/inject-into-launchd.c') 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); } -- cgit v1.2.3