mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 22:39:16 -04:00
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.
13 lines
429 B
C
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;
|