From: Ben Gras Date: Thu, 9 Mar 2006 14:00:33 +0000 (+0000) Subject: Verify if log process numbers are sensible X-Git-Tag: v3.1.2a~275 X-Git-Url: http://zhaoyanbai.com/repos/icons/valid-xhtml10.png?a=commitdiff_plain;h=6d98f7205a44f154d506af3d3a7d4ed6de0ff30b;p=minix.git Verify if log process numbers are sensible --- diff --git a/kernel/utility.c b/kernel/utility.c index 3faef77d8..64520b20e 100755 --- a/kernel/utility.c +++ b/kernel/utility.c @@ -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); + } } } }