public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* chcpu exit code?
@ 2014-02-27  9:46 Bernhard Voelker
  2014-02-27 15:25 ` Dale R. Worley
  2014-02-28  7:53 ` Heiko Carstens
  0 siblings, 2 replies; 8+ messages in thread
From: Bernhard Voelker @ 2014-02-27  9:46 UTC (permalink / raw)
  To: Util-Linux

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-05 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27  9:46 chcpu exit code? Bernhard Voelker
2014-02-27 15:25 ` Dale R. Worley
2014-02-28  7:53 ` Heiko Carstens
2014-02-28  8:49   ` Bernhard Voelker
2014-02-28  9:04   ` Karel Zak
2014-03-03 11:23     ` Bernhard Voelker
2014-03-05 10:12       ` Karel Zak
2014-03-05 11:00         ` Bernhard Voelker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox