Re: chcpu exit code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
> 
> Although the man page does not mention the exit status, I think
> it's wrong that 'chcpu' exits OK when an action failed or
> when a bad CPU number was specified:

> WDYT?

I agree that it would be helpful if chcpu used the usual
success/failure convention for exit status.  The reason is that
sometimes one wants to use "set -e" in a script so that any command
that fails unexpectedly will cause processing to halt.  Similarly, if
one hands a command to a program to execute, a program that is set up
to execute generic commands supplied by some outside source usually
handles non-zero exit status specially by reporting that the command
failed, while treating zero exit statuses as not-to-be-remarked-upon.

Dale
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux