I had to do this, when porting v1.1.0 to FreeBSD. The older versions tested several other things -- including killall --version.
Well, killall exists on FreeBSD and even does the same thing as on Linux (unlike, say, on Solaris), but it does not have the --version option. It starts, but fails...
So it occurred to me, that it may be useful to distinguish failure to find the executable from the executable's own failure to run -- and to only "fail" it in the latter case.
I had to do this, when porting v1.1.0 to FreeBSD. The older versions tested several other things -- including
killall --version
.Well,
killall
exists on FreeBSD and even does the same thing as on Linux (unlike, say, on Solaris), but it does not have the--version
option. It starts, but fails...So it occurred to me, that it may be useful to distinguish failure to find the executable from the executable's own failure to run -- and to only "fail" it in the latter case.