chcpu exit code?

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

 



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:

  $ ./chcpu -d 0 ; echo $?
  CPU 0 is not hot pluggable
  0

  $ ./chcpu -g 3 ; echo $?
  CPU 3 is not configurable
  0

  $ ./chcpu -e 4 ; echo $?
  CPU 4 does not exist
  0

WDYT?

Have a nice day,
Berny
--
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