RFC daemon: tracking childs without signals
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | run-command: add a pipe() write end to childsrun-command.c run-command.h | +5 | 0 replies | |
| 2/2 | daemon: poor man's pidfd like POCdaemon.c | +52 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] daemon: tracking childs without signals
This is a minimum POC of what could be done to remove signals when handling children in git-daemon.
The advantage is that it is at least portable to *NIX systems, unlike using a Linux specific API like pidfd which also allows collecting status from children through fds.
It has to do some innefficient management of the fds array that is given to poll, and wouldn't work as a general solution, since the children could close the pipe() used for tracking unintentionally, but since we control both sides in this case, that might not be a problem.
Carlo Marcelo Arenas Belón (2):
run-command: add a pipe() write end to childs
daemon: poor man's pidfd like POC
daemon.c | 74 ++++++++++++++++++++++++++++++++++++--------------- run-command.c | 3 +++ run-command.h | 2 ++ 3 files changed, 57 insertions(+), 22 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)