Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2012 08:23:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r238061 - stable/9/usr.bin/killall
Message-ID:  <201207030823.q638NMcD030944@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207030823.q638NMcD030944>