Better check for SIGSYS
authorJagger <robert@swiecki.net>
Thu, 5 May 2016 03:04:01 +0000 (05:04 +0200)
committerJagger <robert@swiecki.net>
Thu, 5 May 2016 03:04:01 +0000 (05:04 +0200)
subproc.c

index 25dd5eaeb9c231ceedda19130553a771e574b999..fd06379a0078e4404bf148a52d03e8cb1f55af64 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -158,7 +158,7 @@ int subprocReap(struct nsjconf_t *nsjconf)
                if (si.si_pid == 0) {
                        break;
                }
-               if (si.si_status == SIGSYS) {
+               if (si.si_code == CLD_KILLED && si.si_status == SIGSYS) {
                        subprocSeccompViolation(&si);
                }