From: worley@alum.mit.edu (Dale R. Worley)
To: Bernhard Voelker <mail@bernhard-voelker.de>
Cc: util-linux@vger.kernel.org
Subject: Re: chcpu exit code?
Date: Thu, 27 Feb 2014 10:25:07 -0500 [thread overview]
Message-ID: <201402271525.s1RFP7Uv021719@hobgoblin.ariadne.com> (raw)
In-Reply-To: <530F0972.3040205@bernhard-voelker.de> (mail@bernhard-voelker.de)
> From: Bernhard Voelker <mail@bernhard-voelker.de>
>
> 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
next prev parent reply other threads:[~2014-02-27 15:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 9:46 chcpu exit code? Bernhard Voelker
2014-02-27 15:25 ` Dale R. Worley [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201402271525.s1RFP7Uv021719@hobgoblin.ariadne.com \
--to=worley@alum.mit.edu \
--cc=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox