Date: Mon, 18 Jan 2010 15:00:17 GMT From: Efstratios Karatzas <gpf.kira@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/142911: [patch] vmstat(8) -w should produce error message if fed a negative value Message-ID: <201001181500.o0IF0HCx050023@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/142911; it has been noted by GNATS.
From: Efstratios Karatzas <gpf.kira@gmail.com>
To: bug-followup@freebsd.org
Cc: Bruce Evans <brde@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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181500.o0IF0HCx050023>
