diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-19 17:44:59 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-05-11 17:25:20 +0200 |
commit | d4e7c195fabf0f24c2ffbd4ca8f189489bbbf44d (patch) | |
tree | 2ea3d7184818d5414531d8986f3254db3e5723ee | |
parent | ea837e470f70900481d00b0d1cd73e6855c4f70d (diff) | |
download | guix-d4e7c195fabf0f24c2ffbd4ca8f189489bbbf44d.tar.gz |
Make hook shutdown more reliable
-rw-r--r-- | nix/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index 05024f5194..b848b8ca33 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -629,7 +629,6 @@ HookInstance::HookInstance() }); pid.setSeparatePG(true); - pid.setKillSignal(SIGTERM); fromHook.writeSide.close(); toHook.readSide.close(); } @@ -638,6 +637,7 @@ HookInstance::HookInstance() HookInstance::~HookInstance() { try { + toHook.writeSide.close(); pid.kill(true); } catch (...) { ignoreException(); |