diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-07-17 04:50:20 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-07-17 04:50:20 +0000 |
commit | 785a37e371da455ec0257f8790ba57ea1d466319 (patch) | |
tree | cd40b3d98cf05a9812ed80e9cea9f6f0e66521e7 /bin/systrace | |
parent | 511a0813e0a77cb1cb12d0c932e592c84a5afad3 (diff) |
on detach or kill do not do argument replacement
Diffstat (limited to 'bin/systrace')
-rw-r--r-- | bin/systrace/systrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index a6610531283..491a83c13e1 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.27 2002/07/16 01:22:48 provos Exp $ */ +/* $OpenBSD: systrace.c,v 1.28 2002/07/17 04:50:19 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -186,9 +186,10 @@ trans_cb(int fd, pid_t pid, int policynr, if (policy->flags & POLICY_DETACHED) { if (intercept_detach(fd, pid) == -1) err(1, "intercept_detach"); + return (action); } else if (action == ICPOLICY_KILL) { kill(pid, SIGKILL); - action = ICPOLICY_NEVER; + return (ICPOLICY_NEVER); } replace: if (action < ICPOLICY_NEVER) { |