Re: PG in container w/ pid namespace is init, process exits cause restart - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: PG in container w/ pid namespace is init, process exits cause restart
Date
Msg-id 20210504205340.GK27406@telsasoft.com
Whole thread Raw
In response to Re: PG in container w/ pid namespace is init, process exits cause restart  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Tue, May 04, 2021 at 01:35:50PM -0400, Greg Stark wrote:
> Fwiw, I have a suspicion that the right check for being init is
> whether `pid == ppid`.

pryzbyj@pryzbyj:~$ ps -wwf 1
UID        PID  PPID  C STIME TTY      STAT   TIME CMD
root         1     0  0  2020 ?        Ss    10:28 /sbin/init

As I recall, on some OS, pid 0 is the "swapper".

-- 
Justin



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: MaxOffsetNumber for Table AMs
Next
From: Peter Geoghegan
Date:
Subject: Re: MaxOffsetNumber for Table AMs