Date: Thu, 14 May 2020 10:24:46 +0100 From: Cristian Morales Vega <christian.morales.vega@...il.com> To: musl@...ts.openwall.com Subject: Possible problem with getopt_long_only() 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.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.