diff options
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 232059e70db0..aa539a1fa42b 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -617,7 +617,6 @@ HookInstance::HookInstance() }); pid.setSeparatePG(true); - pid.setKillSignal(SIGTERM); fromHook.writeSide.close(); toHook.readSide.close(); } @@ -626,6 +625,7 @@ HookInstance::HookInstance() HookInstance::~HookInstance() { try { + toHook.writeSide.close(); pid.kill(true); } catch (...) { ignoreException(); |