diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-11-02 01:03:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-11-02 01:03:00 +0000 |
commit | 69f9407faa093d08788c25d6a2190d0054dc31c3 (patch) | |
tree | b455e93d0611312afd66c4b6dff1138996266686 /winsup/utils | |
parent | cb08a6c1a026ac521b68e5ef3b48543c2b2fa091 (diff) | |
download | newlib-69f9407faa093d08788c25d6a2190d0054dc31c3.zip newlib-69f9407faa093d08788c25d6a2190d0054dc31c3.tar.gz newlib-69f9407faa093d08788c25d6a2190d0054dc31c3.tar.bz2 |
* kill.cc (main): Return 1 in case of errors.
Diffstat (limited to 'winsup/utils')
-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 |