-/* $OpenBSD: manager.c,v 1.7 2017/12/15 14:45:51 bluhm Exp $ */
+/* $OpenBSD: manager.c,v 1.8 2024/04/26 04:44:43 jsg Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
}
/* grab pledged syscall from dmesg */
- if ((signal == SIGKILL) || (signal = SIGABRT)) {
+ if (signal == SIGKILL || signal == SIGABRT) {
int syscall = grab_syscall(pid);
switch (syscall) {
case -1: /* error */
-# $OpenBSD: tests.out,v 1.13 2017/02/19 19:59:12 tb Exp $
+# $OpenBSD: tests.out,v 1.14 2024/04/26 04:44:43 jsg Exp $
test(test_nop): pledge=("",NULL) status=0 exit=0
test(test_inet): pledge=("",NULL) status=134 signal=6 coredump=present pledged_syscall=97
test(test_inet): pledge=("abort",NULL) status=5632 exit=22 (errno: "Invalid argument")
test(test_inet): pledge=("inet",NULL) status=134 signal=6 coredump=present pledged_syscall=6
test(test_inet): pledge=("stdio inet",NULL) status=0 exit=0
test(test_kill): pledge=("fattr",NULL) status=134 signal=6 coredump=present pledged_syscall=122
-test(test_kill): pledge=("stdio",NULL) status=2 signal=2 pledged_syscall=not_found
+test(test_kill): pledge=("stdio",NULL) status=2 signal=2
test(test_rpath): pledge=("stdio rpath",NULL) status=0 exit=0
test(test_wpath): pledge=("stdio wpath",NULL) status=0 exit=0
test(test_cpath): pledge=("cpath",NULL) status=0 exit=0