Re: [PATCH RFC v3 41/90] pidfd: add pidfd_configure()
From: Askar Safin
Date: Fri Nov 27 2026 - 00:33:20 EST
(I just found that waitid doesn't work with CLONE_AUTOREAP processes.
And exit code should be get using ioctl instead. My mistake, I am sorry.)
> + .flags = CLONE_VM | CLONE_UNTRACED | CLONE_AUTOREAP |
> + CLONE_INTO_CGROUP | CLONE_NNP | CLONE_CLEAR_SIGHAND,
> + .fn = embryo_main,
> + .fn_arg = e,
> + .name = "embryo",
Does this mean that string "embryo" is exposed to userspace? (I. e. "ps" output.)
Option is named PIDFD_EMPTY as opposed to PIDFD_EMBRYO, thus, I think
user-exposed task name should be "empty", too.
Also, I noticed that you reset all signals.
As well as I remember, all systemd services start by default with
SIGPIPE set to IGN. So, if you start a cell within systemd service,
then SIGPIPE will be set to DFL, which is probably unexpected.
I don't mean that this should be changed, just make sure to document this.
(I am not expert. So take everything I say with grain of salt.)
--
Askar Safin