Re: OpenBSD 7.3 found a process with PID 0

2023-09-27 Thread Claudio Jeker
On Tue, Sep 26, 2023 at 06:12:20PM +0200, Alessandro Baggi wrote: > > > Il 26/09/23 17:30, Claudio Jeker ha scritto: > > On Tue, Sep 26, 2023 at 05:13:46PM +0200, Andreas Kähäri wrote: > > > On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: > > > > Hi list, > > > > running this

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Janne Johansson
> > How could be that there is a process with PID 0 before init? > Probably I'm missing something about OpenBSD core. > As for this small part of the mystery, even init starts out as a skeleton process created early by the kernel, which then does an exec() of /sbin/init so that whatever program

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Benjamin Stürz
Am 26.09.23 um 18:12 schrieb Alessandro Baggi: Il 26/09/23 17:30, Claudio Jeker ha scritto: On Tue, Sep 26, 2023 at 05:13:46PM +0200, Andreas Kähäri wrote: On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: Hi list, running this python3 script: #!/usr/bin/env python3 import

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Alessandro Baggi
Il 26/09/23 17:30, Claudio Jeker ha scritto: On Tue, Sep 26, 2023 at 05:13:46PM +0200, Andreas Kähäri wrote: On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: Hi list, running this python3 script: #!/usr/bin/env python3 import psutil pids = psutil.pids() for i in pids:

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Claudio Jeker
On Tue, Sep 26, 2023 at 05:13:46PM +0200, Andreas Kähäri wrote: > On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: > > Hi list, > > running this python3 script: > > > > #!/usr/bin/env python3 > > import psutil > > > > pids = psutil.pids() > > for i in pids: > > p =

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Alessandro Baggi
Il 26/09/23 17:13, Andreas Kähäri ha scritto: On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: Hi list, running this python3 script: #!/usr/bin/env python3 import psutil pids = psutil.pids() for i in pids: p = psutil.Process(i) with p.oneshot():

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Andreas Kähäri
On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: > Hi list, > running this python3 script: > > #!/usr/bin/env python3 > import psutil > > pids = psutil.pids() > for i in pids: > p = psutil.Process(i) > with p.oneshot(): > print(str(i) + " " + p.name()) > > The

Re: OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Dave Voutila
Alessandro Baggi writes: > Hi list, > running this python3 script: > > #!/usr/bin/env python3 > import psutil > > pids = psutil.pids() > for i in pids: > p = psutil.Process(i) > with p.oneshot(): > print(str(i) + " " + p.name()) > > The result start with: > > 0 swapper > 1 init

OpenBSD 7.3 found a process with PID 0

2023-09-26 Thread Alessandro Baggi
Hi list, running this python3 script: #!/usr/bin/env python3 import psutil pids = psutil.pids() for i in pids: p = psutil.Process(i) with p.oneshot(): print(str(i) + " " + p.name()) The result start with: 0 swapper 1 init 536 smtpd 868 ksh ... This process does not appear in