Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2012 08:47:06 +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-8@freebsd.org
Subject:   svn commit: r238065 - stable/8/usr.bin/killall
Message-ID:  <201207030847.q638l6MO032085@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jul  3 08:47:06 2012
New Revision: 238065
URL: http://svn.freebsd.org/changeset/base/238065

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

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

Modified: stable/8/usr.bin/killall/killall.c
==============================================================================
--- stable/8/usr.bin/killall/killall.c	Tue Jul  3 08:46:26 2012	(r238064)
+++ stable/8/usr.bin/killall/killall.c	Tue Jul  3 08:47:06 2012	(r238065)
@@ -326,7 +326,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?201207030847.q638l6MO032085>