diff --git a/pkgs/build-support/build-fhsenv-chroot/chrootenv/src/chrootenv.c b/pkgs/build-support/build-fhsenv-chroot/chrootenv/src/chrootenv.c index c109d7297e174..79a92a6edd25b 100644 --- a/pkgs/build-support/build-fhsenv-chroot/chrootenv/src/chrootenv.c +++ b/pkgs/build-support/build-fhsenv-chroot/chrootenv/src/chrootenv.c @@ -155,6 +155,8 @@ int main(gint argc, gchar **argv) { else { int status; + fail_if(signal(SIGINT, SIG_IGN) == SIG_ERR); + fail_if(waitpid(cpid, &status, 0) != cpid); fail_if(rmdir(prefix));