public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@justemail.net>
To: kerolasa@gmail.com
Cc: "Util-Linux" <util-linux@vger.kernel.org>
Subject: Re: small problem with kill --queue
Date: Wed, 09 Jul 2014 15:29:06 +0200	[thread overview]
Message-ID: <1404912546.1512.139736225.71C7CA63@webmail.messagingengine.com> (raw)
In-Reply-To: <CAG27Bk3niwrfc1oW9DfSvxZ2tV3Y=ZXEi1Wb+61AXOBYS_jmWw@mail.gmail.com>


Hi Sami,

On Tue, Jul 8, 2014, at 00:39, Sami Kerola wrote:
> Right. I am not sure did I mess up or someone else earlier when
> --queue was introduced.

It looks like you made the mistaken change four months ago,
in commit 9e8dffd5cd29f03029b1ac99eecb129532ca5c0f.

> Which way ever that was now when I look
> sigqueue(3) manual page your change proposal makes sense. Please have
> a look of the change below, that I hope to get reviewed before the
> final v2.25 is out. [...]
>
> +The
> +.B \-\-queue
> +should be combined with
> +.BI \-\-signal " signal"
> +when other than a SIGTERM is wanted to accompanied with
> +.IR sigval .

I don't think it's necessary to explain again that wanting to send any
other signal than TERM requires the --signal option; this is already at
the top of the page.

Also, thinking again, this word "sigval" looks far too similar to "signal",
it would be much clearer to use the plain word "value" instead.  So my
upcoming patches for the usage text and man page use that instead.

> + ctl->sigdata.sival_int = strtos32_or_err(arg, _("argument error"));

Maybe "argument of --queue must be an integer" instead?

My patch to kill.c also improves the error message when the
signal name or number cannot be interpreted.  Currently:

./kill --sigmal HUP foobar
kill: invalid sigval argument

Huh?

New:

./kill --sigmal HUP foobar
kill: invalid signal name or number: -sigmal

Ah, typo.

Benno

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are


  reply	other threads:[~2014-07-09 13:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07 20:34 small problem with kill --queue Benno Schulenberg
2014-07-07 22:39 ` Sami Kerola
2014-07-09 13:29   ` Benno Schulenberg [this message]
2014-07-09 20:49     ` Sami Kerola
2014-07-09 20:49       ` [PATCH] kill: use --queue option argument as sigval integer value Sami Kerola
2014-07-14 13:51         ` Karel Zak

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=1404912546.1512.139736225.71C7CA63@webmail.messagingengine.com \
    --to=bensberg@justemail.net \
    --cc=kerolasa@gmail.com \
    --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