opnsense-ports/sysutils/policykit/files/patch-src_kit_kit-spawn.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

13 lines
429 B
C

--- src/kit/kit-spawn.c.orig 2009-03-29 20:11:24.000000000 -0400
+++ src/kit/kit-spawn.c 2009-03-29 20:11:43.000000000 -0400
@@ -396,7 +396,10 @@ kit_spawn_sync (const char *working_
}
}
+again:
if (waitpid (pid, out_exit_status, 0) == -1) {
+ if (errno == EINTR)
+ goto again;
goto out;
}
pid = -1;