bin/142911: [patch] vmstat(8) -w should produce error message
if fed a negative value
Efstratios Karatzas
gpf.kira at gmail.com
Mon Jan 18 15:00:20 UTC 2010
The following reply was made to PR bin/142911; it has been noted by GNATS.
From: Efstratios Karatzas <gpf.kira at gmail.com>
To: bug-followup at freebsd.org
Cc: Bruce Evans <brde at optusnet.com.au>
Subject: Re: bin/142911: [patch] vmstat(8) -w should produce error message if
fed a negative value
Date: Mon, 18 Jan 2010 16:54:16 +0200
Just thought of a simpler solution
// if it is really 0
if (atoi(optarg) == 0 && strncmp(optarg, "0", 1) == 0 ) {
// do stuff
}
Prob is that the
"vmstat -w 0abc"
command would be equivalent to
"vmstat -w 0"
but I think that's acceptable.
Get back at me.
--
Efstratios "GPF" Karatzas
More information about the freebsd-bugs
mailing list