[Toybox] [PATCH] killall: fix a logic error in names_to_pid().

enh enh at google.com
Wed Jul 27 07:32:19 PDT 2022


On Tue, Jul 26, 2022 at 10:54 PM Rob Landley <rob at landley.net> wrote:

> On 7/26/22 17:59, enh wrote:
> > This broke a lot of tests in postsubmit, and even seems to have had the
> > effect of causing reboots (presumably by accidentally killing init)
> > which made it quite hard to track down.
>
> Isn't this why init has signals blocked?
>
> > Sadly I'm too stupid by this point in the afternoon to come up with the
> > missing test :-(
>
> Properly testing killall and rm goes under mkroot, precisely _because_ it
> can do
> bad things to the system if it goes wrong...
>

we do have _some_ killall tests, i just didn't get past the "how did we get
here?" to even work out whether we could write a test for this case, not
the "okay, how do i write that test?"...


> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20220727/40794459/attachment.htm>


More information about the Toybox mailing list