aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/procctl
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@FreeBSD.org>1997-12-13 03:13:49 +0000
committerSean Eric Fagan <sef@FreeBSD.org>1997-12-13 03:13:49 +0000
commitd7b7dcba41ac3c46e7ccd2efb837c560a867cba9 (patch)
treeb2c39c799eb94ba334869469a0e95ced5c40ff7c /usr.sbin/procctl
parentbcc332bdb0fffe5e7900c7e26954f062c95b0c23 (diff)
Notes
Diffstat (limited to 'usr.sbin/procctl')
-rw-r--r--usr.sbin/procctl/procctl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/procctl/procctl.c b/usr.sbin/procctl/procctl.c
index 2578c477b69d..ae3894bb20ec 100644
--- a/usr.sbin/procctl/procctl.c
+++ b/usr.sbin/procctl/procctl.c
@@ -7,7 +7,7 @@
* for some annoying circumstances.)
*/
/*
- * $Id$
+ * $Id: procctl.c,v 1.1 1997/12/06 04:19:09 sef Exp $
*/
#include <stdio.h>
@@ -39,13 +39,11 @@ main(int ac, char **av) {
av[0], av[i], strerror(errno));
continue;
}
- mask = ~0;
- if (ioctl(fd, PIOCBIC, &mask) == -1) {
+ if (ioctl(fd, PIOCBIC, ~0) == -1) {
fprintf(stderr, "%s: cannot clear process %s's event mask: %s\n",
av[0], av[i], strerror(errno));
}
- mask = 0;
- if (ioctl(fd, PIOCCONT, &mask) == -1 && errno != EINVAL) {
+ if (ioctl(fd, PIOCCONT, 0) == -1 && errno != EINVAL) {
fprintf(stderr, "%s: cannot continue process %s: %s\n",
av[0], av[i], strerror(errno));
}