diff options
-rw-r--r-- | winsup/utils/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/utils/kill.cc | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 450705a..560c312 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -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++ diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index 9614756..c4a805d 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -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 |