Subject: bug#17122: More problems with --no-substitutes

From: [email-masked] (Ludovic Courtès)
Date: Fri, 28 Mar 2014 10:20:54 +0100

Mark H Weaver <[email-masked]> skribis:

> mhw:~/guix-core-updates$ ps auxww | grep guix-daemon
> mhw       1275  3.0  0.2   5248  2688 pts/0    S+   11:40   0:00 grep guix-daemon
> root     13020  0.0  0.2   7552  2496 tty6     S+   Mar22   0:00 guix-daemon --no-substitutes --build-users-group=guix-builder
> root     14429  0.1  0.9  15808 10304 ?        Ss   Mar26   1:05 guix-daemon 14425            --build-users-group=guix-builder
>
> Notice that there's another 'guix-daemon' process here (pid 14429) which
> I didn't start, and which has "--build-users-group=guix-builder" but is
> missing "--no-substitutes".

Process 14429 is a child of the real guix-daemon, as spawned upon
‘accept’ success; see nix-daemon.cc:878.

The fact that “--no-substitutes” is replaced with “14425” is a result
from the modification of argvSaved[1] in subsequent lines, and doesn’t
change anything regarding substitute handling (which is handled by the
parent process anyway.)

Ludo’.