svn commit: r238061 - stable/9/usr.bin/killall

Konstantin Belousov kib at FreeBSD.org
Tue Jul 3 08:23:23 UTC 2012


Author: kib
Date: Tue Jul  3 08:23:22 2012
New Revision: 238061
URL: http://svn.freebsd.org/changeset/base/238061

Log:
  MFC 237847:
  Do not test ki_stat as mask.

Modified:
  stable/9/usr.bin/killall/killall.c
Directory Properties:
  stable/9/usr.bin/killall/   (props changed)

Modified: stable/9/usr.bin/killall/killall.c
==============================================================================
--- stable/9/usr.bin/killall/killall.c	Tue Jul  3 08:21:56 2012	(r238060)
+++ stable/9/usr.bin/killall/killall.c	Tue Jul  3 08:23:22 2012	(r238061)
@@ -314,7 +314,7 @@ main(int ac, char **av)
 	mypid = getpid();
 
 	for (i = 0; i < nprocs; i++) {
-		if ((procs[i].ki_stat & SZOMB) == SZOMB && !zflag)
+		if (procs[i].ki_stat == SZOMB && !zflag)
 			continue;
 		thispid = procs[i].ki_pid;
 		strlcpy(thiscmd, procs[i].ki_comm, sizeof(thiscmd));


More information about the svn-src-stable-9 mailing list