* kill.cc (main): Return 1 in case of errors.
This commit is contained in:
parent
cb08a6c1a0
commit
69f9407faa
@ -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>
|
Sat Oct 28 01:37:55 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* Makefile.in: Accomodate newer gcc's which require linking of c++
|
* Makefile.in: Accomodate newer gcc's which require linking of c++
|
||||||
|
@ -27,6 +27,7 @@ main (int argc, char **argv)
|
|||||||
int sig = SIGTERM;
|
int sig = SIGTERM;
|
||||||
int force = 0;
|
int force = 0;
|
||||||
int gotsig = 0;
|
int gotsig = 0;
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
usage ();
|
usage ();
|
||||||
@ -81,12 +82,13 @@ sig0:
|
|||||||
char buf[1000];
|
char buf[1000];
|
||||||
sprintf (buf, "kill %d", pid);
|
sprintf (buf, "kill %d", pid);
|
||||||
perror (buf);
|
perror (buf);
|
||||||
|
ret = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user