]> Zhao Yanbai Git Server - minix.git/commitdiff
Verify if log process numbers are sensible
authorBen Gras <ben@minix3.org>
Thu, 9 Mar 2006 14:00:33 +0000 (14:00 +0000)
committerBen Gras <ben@minix3.org>
Thu, 9 Mar 2006 14:00:33 +0000 (14:00 +0000)
kernel/utility.c

index 3faef77d872b79ab0271de8696224b1c6f32e9bc..64520b20ef01b617dcd6d0cdd2a728f5ebc8167e 100755 (executable)
@@ -141,7 +141,9 @@ int c;                                      /* character to append */
   } else {
       int p, outprocs[] = OUTPUT_PROCS_ARRAY;
       for(p = 0; outprocs[p] != NONE; p++) {
-         send_sig(outprocs[p], SIGKMESS);
+        if(isokprocn(outprocs[p]) && !isemptyn(outprocs[p])) {
+           send_sig(outprocs[p], SIGKMESS);
+        }
       }
   }
 }