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

2020-10-22 Thread Rob Landley
On 10/22/20 5:49 PM, Rob Landley wrote: > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: >> Sure, but.. >> >> $ watchdog -F & >> >> works on nommu > > So I'm poking at a vfork() based xvdaemon() with nommu support, and the ONLY > caller of daemon() without 0,0 arguments is watchdog. > > I

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

2020-10-22 Thread Rob Landley
On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > Sure, but.. > > $ watchdog -F & > > works on nommu So I'm poking at a vfork() based xvdaemon() with nommu support, and the ONLY caller of daemon() without 0,0 arguments is watchdog. I think not closing stdin/stdout/stderr is irrelevant here (it

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

2020-10-22 Thread Patrick Oppenlander
On Fri, 23 Oct 2020, 08:21 Rob Landley, wrote: > On 10/22/20 3:58 PM, Patrick Oppenlander wrote: > > On Thu, 22 Oct 2020, 17:37 Rob Landley, > > wrote: > > > > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > > > Sure, but.. > > > > > > $ watchdog -F &

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

2020-10-22 Thread Rob Landley
On 10/22/20 3:58 PM, Patrick Oppenlander wrote: > On Thu, 22 Oct 2020, 17:37 Rob Landley, > wrote: > > On 10/21/20 4:24 AM, Patrick Oppenlander wrote: > > Sure, but.. > > > > $ watchdog -F & > > > > works on nommu > > Yes, but fork() and

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

2020-10-22 Thread Patrick Oppenlander
On Thu, 22 Oct 2020, 17:37 Rob Landley, 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

Re: [Toybox] toysh vs dash

2020-10-22 Thread Rob Landley
On 10/22/20 5:05 AM, scsijon wrote: > Just wondering if toysh will be able to replace dash. I'm aiming to replace bash. I don't have a "remove any feature that's not in posix" flag yet. > I'm looking at nenuzhnix (https://github.com/tpimh/nenuzhnix) at present, > known > as the most useless

[Toybox] toysh vs dash

2020-10-22 Thread scsijon
Just wondering if toysh will be able to replace dash. I'm looking at nenuzhnix (https://github.com/tpimh/nenuzhnix) at present, known as the most useless linux distro which uses both toybox and dash. Nenuzhnix is one of a kind because of the very specific set of software it is built of/with.

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

2020-10-22 Thread Rob Landley
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 fore them if it's a build break. I have a todo item to make some