GNU bug report logs -
#76262
[PATCH 0/3] Remove uses of 'waitpid' in Shepherd services
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Thu, 13 Feb 2025 11:45:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 76262 <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> skribis:
> This is more concise and more robust: these ‘waitpid’ calls would
> compete with those made by shepherd’s event loop upon SIGCHLD, and they
> could hang forever.
>
> * gnu/services/databases.scm (postgresql-role-shepherd-service): Use
> ‘spawn-command’ instead of ‘fork+exec-command’ followed by ‘waitpid’.
> * gnu/services/networking.scm (dhcp-client-shepherd-service): Change
> ‘start’ to use ‘spawn-command’ instead of ‘fork+exec-command’ and
> * gnu/services/web.scm (patchwork-django-admin-gexp): Use
> ‘spawn-command’ instead of ‘primitive-fork’ + ‘waitpid’.
>
> Change-Id: I449290bfa46f8600e6ccdb5a6da990ad0cb7948c
Concrete manifestation of the bug with ‘dhcp-client-service-type’:
https://issues.guix.gnu.org/76315
Ludo’.
This bug report was last modified 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.