Changes in 21.1
===============
+2002-08-19
+ * Changed killall.1 to be less ambigous, Debian #127851
2002-08-18
* Added patches from James Morrison so it works on Hurd
* Fixed UTF8 Problem. closes Debian #140960
+ * Return for fuser -k will mean no.
2002-08-17
* Now has LFS support. Closes Debian #129157 and #156017
If the command name contains a slash (\fB/\fP), processes executing that
particular file will be selected for killing, independent of their name.
.PP
-\fBkillall\fP returns a non-zero return code if no process has been killed
-for any of the listed commands. If at least one process has been killed for
-each command, \fBkillall\fP returns zero.
+\fBkillall\fP returns a zero return code if at least one process has been
+killed for each ilisted command. \fBkillall\fP returns zero otherwise.
.PP
A \fBkillall\fP process never kills itself (but may kill other \fBkillall\fP
processes).
int ch, c;
fflush (stdout);
- do
- {
- fprintf (stderr, _("Kill process %d ? (y/n) "), pid);
- fflush (stderr);
- do
- if ((ch = getchar ()) == EOF)
- exit (0);
- while (ch == '\n' || ch == '\t' || ch == ' ');
- do
- if ((c = getchar ()) == EOF)
- exit (0);
- while (c != '\n');
- }
- while (ch != 'y' && ch != 'n' && ch != 'Y' && ch != 'N');
+ do {
+ fprintf (stderr, _("Kill process %d ? (y/n) "), pid);
+ fflush (stderr);
+ do {
+ if ((ch = getchar ()) == EOF)
+ exit (0);
+ if (ch == '\n') return 0;
+ } while (ch == '\t' || ch == ' ');
+ do
+ if ((c = getchar ()) == EOF)
+ exit (0);
+ while (c != '\n');
+ } while (ch != '\n' && ch != 'y' && ch != 'n' && ch != 'Y' && ch != 'N');
return ch == 'y' || ch == 'Y';
}