Mercurial > hg > orthanc
changeset 686:dc12a3fa4961
capture SIGTERM
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 31 Jan 2014 18:16:00 +0100 |
parents | b01cc78caba4 |
children | 8be4f95fd747 |
files | Core/Toolbox.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/Toolbox.cpp Fri Jan 31 17:45:27 2014 +0100 +++ b/Core/Toolbox.cpp Fri Jan 31 18:16:00 2014 +0100 @@ -187,6 +187,7 @@ #else signal(SIGINT, SignalHandler); signal(SIGQUIT, SignalHandler); + signal(SIGTERM, SignalHandler); #endif finish = false; @@ -200,6 +201,7 @@ #else signal(SIGINT, NULL); signal(SIGQUIT, NULL); + signal(SIGTERM, NULL); #endif }