[gnome-keyring/wip/fork-fixes] main: don't fork when running foreground
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/fork-fixes] main: don't fork when running foreground
- Date: Fri, 16 Oct 2015 19:19:30 +0000 (UTC)
commit 77392e9b98465313ae5d7e8b022cbb4608ee5f5b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Oct 16 12:18:52 2015 -0700
main: don't fork when running foreground
daemon/gkd-main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c
index 095daf0..6937ddf 100644
--- a/daemon/gkd-main.c
+++ b/daemon/gkd-main.c
@@ -687,6 +687,10 @@ fork_and_print_environment (void)
pid_t pid;
int wakeup_fds[2] = { -1, -1 };
+ if (run_foreground) {
+ return -1;
+ }
+
if (!g_unix_open_pipe (wakeup_fds, FD_CLOEXEC, NULL))
exit (1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]