diff options
author | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2011-04-30 11:47:45 +0000 |
---|---|---|
committer | dominique.leuenberger@gmail.com <dominique.leuenberger@gmail.com@c587cffe-e639-0410-9787-d7902ae8ed56> | 2011-04-30 11:47:45 +0000 |
commit | 025d1ad09329f268b3eef85530fdfa026b7c74db (patch) | |
tree | 532d8b73bd97bc2dc9fd8f2210d494e1dd2d99be | |
parent | d18ef871aea172b9488a3e2a4d2c21ddeebe985a (diff) | |
download | libproxy-025d1ad09329f268b3eef85530fdfa026b7c74db.tar.gz |
pgxconf/pxgsettings: also trap SIGABRT, fix issue 157
git-svn-id: http://libproxy.googlecode.com/svn/trunk@801 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r-- | libproxy/modules/pxgconf.cpp | 2 | ||||
-rw-r--r-- | libproxy/modules/pxgsettings.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libproxy/modules/pxgconf.cpp b/libproxy/modules/pxgconf.cpp index 4a1e17c..d6276a8 100644 --- a/libproxy/modules/pxgconf.cpp +++ b/libproxy/modules/pxgconf.cpp @@ -130,7 +130,7 @@ int main(int argc, char **argv) { if (argc < 2) return 1; // Register sighup handler - if (signal(SIGHUP, on_sig) == SIG_ERR || signal(SIGPIPE, on_sig) == SIG_ERR) { + if (signal(SIGHUP, on_sig) == SIG_ERR || signal(SIGPIPE, on_sig) == SIG_ERR || signal(SIGABRT, on_sig) == SIG_ERR) { fprintf(stderr, "Unable to trap signals!"); return 2; } diff --git a/libproxy/modules/pxgsettings.cpp b/libproxy/modules/pxgsettings.cpp index 95fd210..444d41c 100644 --- a/libproxy/modules/pxgsettings.cpp +++ b/libproxy/modules/pxgsettings.cpp @@ -108,7 +108,7 @@ int main(int argc, char **argv) { if (argc < 2) return 1; // Register sighup handler - if (signal(SIGHUP, on_sig) == SIG_ERR || signal(SIGPIPE, on_sig) == SIG_ERR) { + if (signal(SIGHUP, on_sig) == SIG_ERR || signal(SIGPIPE, on_sig) == SIG_ERR || signal(SIGABRT, on_sig) == SIG_ERR) { fprintf(stderr, "Unable to trap signals!"); return 2; } |