diff options
author | 2002-06-12 22:14:51 +0000 | |
---|---|---|
committer | 2002-06-12 22:14:51 +0000 | |
commit | 4fd6a3516d45bd269cf42411b00a8c0c0a6886db (patch) | |
tree | f1533cb67d7d558d662bd544a20de5a421716884 /bin/systrace/systrace.c | |
parent | Rewrite for pf, plus some other small stuff (diff) | |
download | wireguard-openbsd-4fd6a3516d45bd269cf42411b00a8c0c0a6886db.tar.xz wireguard-openbsd-4fd6a3516d45bd269cf42411b00a8c0c0a6886db.zip |
gui needs to be started after child has been forked to prevent fds from
being inherited and stdout/stdin from being mangled; from xs@kittenz.org
Diffstat (limited to 'bin/systrace/systrace.c')
-rw-r--r-- | bin/systrace/systrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index 42cfacf7be5..9dbf09eaaea 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.15 2002/06/11 05:21:17 jsyn Exp $ */ +/* $OpenBSD: systrace.c,v 1.16 2002/06/12 22:14:51 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -449,10 +449,6 @@ main(int argc, char **argv) systrace_initpolicy(filename); systrace_initcb(); - /* Start the policy gui if necessary */ - if (usex11 && !automatic && !allow) - requestor_start(guipath); - if ((fd = intercept_open()) == -1) exit(1); @@ -481,6 +477,10 @@ main(int argc, char **argv) err(1, "attachpid"); } + /* Start the policy gui if necessary */ + if (usex11 && !automatic && !allow) + requestor_start(guipath); + while (intercept_read(fd) != -1) if (!intercept_existpids()) break; |