[Toybox] watchdog: Can't call daemon() on nommu

Rob Landley rob at landley.net
Thu Oct 22 14:32:16 PDT 2020


On 10/22/20 3:58 PM, Patrick Oppenlander wrote:
> On Thu, 22 Oct 2020, 17:37 Rob Landley, <rob at landley.net
> <mailto:rob at landley.net>> wrote:
> 
>     On 10/21/20 4:24 AM, Patrick Oppenlander wrote:
>     > Sure, but..
>     >
>     > $ watchdog -F &
>     >
>     > works on nommu
> 
>     Yes, but fork() and daemon() shouldn't be available on nommu systems (they
>     _can't_ succeed) and you can only compile time probe for them if it's a build
>     break.
> 
>     I have a todo item to make some variant of xdaemon() plumbing that works on
>     nommu by relaunching the command, but I haven't gotten around to it yet because
>     I'm back in tokyo at $DAYJOB.
> 
> Neat. Didn't know that was the plan, thanks.

I'm working on a nommu j-core system at $DAYJOB. It has to work eventually...

>     > Also, watchdog -F is pretty useful as a quick test for newly developed
>     > watchdog drivers on nommu platforms.
> 
>     I agree it should be supported. Eventually nothing should depend on TOYBOX_FORK,
>     I need to fix up all of those to work on nommu properly.
> 
> Great! No hurry, just wanted to point it out. I'm playing "annoying user" at the
> moment :)

No problem, thanks for the feedback.

> Enjoy Japan. Are they open for business at the moment?

For tourism, no. If you have a residence card, there's a somewhat elaborate
procedure involving an in-person trip to the embassy, specific kinds of covid
testing, and a 2 week quarantine when you get here:

  https://landley.net/notes-2020.html#28-08-2020
  https://landley.net/notes-2020.html#14-09-2020
  https://landley.net/notes-2020.html#28-09-2020

and so on...

> We're almost out of a
> hard lockdown here in Melbourne, Australia. Travel restrictions have been eased
> from 5km to 25km from home just this week.

Can we just put Jacinda Ardern in charge of everywhere? (Not that she'd want to,
but still.)

Rob



More information about the Toybox mailing list