Hi,

Maxim Cournoyer <[email protected]> skribis:

> Yes, that would be the correct and general solution (I hope you get to
> fix it, else I may look into it in some time).  Workarounds currently in
> use can be seen in our mutter package definition (it's a bit convoluted,
> having to fork a process in which we set the child reaping property and
> invoke the test suite via tini, acting as a fake PID 1).

The Guile process running the build script (with the build phases) runs
as PID 1.  So how about doing one of these:

  1. Add a final phase that does (waitpid WAIT_ANY).

  2. Add a SIGCHLD handler that calls ‘waitpid’.

I suspect the former is enough.

Eventually, we should do one of these in gnu-build-system.scm, as in:

  https://issues.guix.gnu.org/30948#2

WDYT?

Ludo’.

Reply via email to