From: Cristian Morales Vega <christian.morales.vega@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Possible problem with getopt_long_only()
Date: Thu, 14 May 2020 10:24:46 +0100 [thread overview]
Message-ID: <CAOWQn3Tnuar_fbW8EVSFzdXgN_oDiyY1Yvzyy8fWs3ECKC_3jA@mail.gmail.com> (raw)
I have not looked at the details. But killall from psmisc fails to
parse "killall -10 <cmd>" when using musl 1.1.24 (the one used by the
latest OpenWrt release, according to
https://git.musl-libc.org/cgit/musl/log/src/misc/getopt_long.c the
file has not been changed since 2018-09-12 anyway).
In https://gitlab.com/psmisc/psmisc/-/blob/v23.3/src/killall.c#L989
optind is "1" if "killall -10 <cmd>" was used, but 2 if "killall -9
<cmd>". So whether the signal number is only one digit or more makes
the optind change. So killall only works with <10 signals.
Not sure it's the same issue, but in case it's different and was never
reported to you you may be interested also on
https://github.com/JuliaLang/julia/pull/31946.
next reply other threads:[~2020-05-14 9:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 9:24 Cristian Morales Vega [this message]
2020-05-14 16:35 ` Rich Felker
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=CAOWQn3Tnuar_fbW8EVSFzdXgN_oDiyY1Yvzyy8fWs3ECKC_3jA@mail.gmail.com \
--to=christian.morales.vega@gmail.com \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).