[iwhd patch] Add registration in vSphere
Pete Zaitcev
zaitcev at redhat.com
Wed Jun 1 18:00:50 UTC 2011
On Wed, 01 Jun 2011 09:01:22 +0200
Jim Meyering <jim at meyering.net> wrote:
> Then there were 30 or 40 uses of exit(N) where N is
> a constant rather than EXIT_SUCCESS or EXIT_FAILURE.
> I fixed them mechanically by running these two commands:
>
> perl -pi -e 's/(^|[^.])\b(exit ?)\([12]\)/$1$2(EXIT_FAILURE)/' \
> dc-vmware-image.c
> perl -pi -e 's/(^|[^.])\b(exit ?)\(0\)/$1$2(EXIT_SUCCESS)/' \
> dc-vmware-image.c
Oh, nifty. I was just killing them off by hand when opportunity arised.
I'm not sure about the EXIT_SUCCESS, since the code around waitpid
checks for zero, but I don't mind it either way.
-- Pete
More information about the iwhd-devel
mailing list