mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Possible problem with getopt_long_only()
@ 2020-05-14  9:24 Cristian Morales Vega
  2020-05-14 16:35 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Morales Vega @ 2020-05-14  9:24 UTC (permalink / raw)
  To: musl

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.

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

end of thread, other threads:[~2020-05-14 16:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  9:24 [musl] Possible problem with getopt_long_only() Cristian Morales Vega
2020-05-14 16:35 ` Rich Felker

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).