.\"
.\" Copyright 1993-2002 Werner Almesberger
-.\" 2002-2017 Craig Small
+.\" 2002-2018 Craig Small
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
-.TH KILLALL 1 "2017-06-12" "psmisc" "User Commands"
+.TH KILLALL 1 "2018-05-06" "psmisc" "User Commands"
.SH NAME
killall \- kill processes by name
.SH SYNOPSIS
.IP "\fB\-l\fP, \fB\-\-list\fP"
List all known signal names.
.IP "\fB\-n\fP, \fB\-\-ns\fP"
-Match against the PID namespace of the given PID. Use 0 to match against
-all namespaces. The default is to match against the current PID namespace.
+Match against the PID namespace of the given PID. The default is to match
+against all namespaces.
.IP "\fB\-o\fP, \fB\-\-older\-than\fP"
Match only processes that are older (started before) the time
specified. The time is specified as a float then a unit. The units
* killall.c - kill processes by name or list PIDs
*
* Copyright (C) 1993-2002 Werner Almesberger
- * Copyright (C) 2002-2017 Craig Small
+ * Copyright (C) 2002-2018 Craig Small
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
" -V,--version display version information\n"
" -w,--wait wait for processes to die\n"
" -n,--ns PID match processes that belong to the same namespaces\n"
- " as PID or 0 for all namespaces\n"));
+ " as PID\n"));
#ifdef WITH_SELINUX
fprintf(stderr, _(
{"version", 0, NULL, 'V'},
{0,0,0,0 }};
- opt_ns_pid = getpid();
/* Setup the i18n */
#ifdef ENABLE_NLS
break;
case 'n':
opt_ns_pid = atoi(optarg);
+ if (opt_ns_pid == 0)
+ usage(_("Invalid namespace PID"));
break;
#ifdef WITH_SELINUX
case 'Z':