* kill.cc (main): Return 1 in case of errors.

This commit is contained in:
Corinna Vinschen 2000-11-02 01:03:00 +00:00
parent cb08a6c1a0
commit 69f9407faa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Nov 2 2:01:00 2000 Corinna Vinschen <corinna@vinschen.de>
* kill.cc (main): Return 1 in case of errors.
Sat Oct 28 01:37:55 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.in: Accomodate newer gcc's which require linking of c++

View File

@ -27,6 +27,7 @@ main (int argc, char **argv)
int sig = SIGTERM;
int force = 0;
int gotsig = 0;
int ret = 0;
if (argc == 1)
usage ();
@ -81,12 +82,13 @@ sig0:
char buf[1000];
sprintf (buf, "kill %d", pid);
perror (buf);
ret = 1;
}
}
}
argv++;
}
return 0;
return ret;
}
static void