ports/sysutils/policykit/files/patch-src_kit_kit-spawn.c
Joe Marcus Clarke ada2201110 * Fix a problem where waitpid() may return EINTR which causes the various
polkit helpers to report a failure.  This fix allows dynamic polkit
  policies to actually work (e.g. mounting fixed drives with proper
  authorization).

* Workaround a bug in our version of getline(3), and check for EOF when
  getline does not return -1.
2009-03-30 00:17:17 +00: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;