home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0098 < prev    next >
Encoding:
Text File  |  1982-04-19  |  498 b   |  19 lines

  1. Autzoo.1581
  2. net.bugs.v7
  3. utzoo!henry
  4. Mon Apr 19 18:58:48 1982
  5. kill -1 -1
  6. The V7 kill program will not take -1 as a processid.  The kill system
  7. call likes it just fine (it sends the signal to all processes except
  8. 0 and 1) but kill(1) thinks it is syntactically invalid.  The fix for
  9. this is to change the line:
  10.  
  11.         if (**argv<'0' || **argv>'9')
  12.  
  13. to something like:
  14.  
  15.         if (!isdigit(**argv) && **argv != '-')
  16.  
  17. (NB if you use isdigit rather than the explicit 0 and 9, you'll need
  18. to #include <ctype.h>.)
  19.