Article View: net.bugs.v7
Article #56kill -1 -1
From: utzoohenry
Date: Mon, 19 Apr 1982 18:58
Date: Mon, 19 Apr 1982 18:58
13 lines
597 bytes
597 bytes
The V7 kill program will not take -1 as a processid. The kill system call likes it just fine (it sends the signal to all processes except 0 and 1) but kill(1) thinks it is syntactically invalid. The fix for this is to change the line: if (**argv<'0' || **argv>'9') to something like: if (!isdigit(**argv) && **argv != '-') (NB if you use isdigit rather than the explicit 0 and 9, you'll need to #include <ctype.h>.)
Technical Details
Message-ID:
<anews.Autzoo.1581>Path:
arc1-ca.pugleaf.net!utzoo!henryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!henry From: utzoo!henry Newsgroups: net.bugs.v7 Subject: kill -1 -1 Date: Mon, 19 Apr 1982 18:58:48 +0000 Message-ID: <anews.Autzoo.1581>