Mercurial > hg > easyhg
diff common.cpp @ 105:1928f9b408e6
* Better-behaved comment dialog; avoid empty comments. Also ignore signals from closing ptys
author | Chris Cannam |
---|---|
date | Thu, 25 Nov 2010 17:21:32 +0000 |
parents | 7ed57064f293 |
children | 4bd17f36d059 |
line wrap: on
line diff
--- a/common.cpp Thu Nov 25 14:30:40 2010 +0000 +++ b/common.cpp Thu Nov 25 17:21:32 2010 +0000 @@ -37,6 +37,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <signal.h> #endif QString findExecutable(QString name) @@ -182,6 +183,17 @@ #endif } +void installSignalHandlers() +{ +#ifndef Q_OS_WIN32 + sigset_t sgnals; + sigemptyset (&sgnals); + sigaddset(&sgnals, SIGHUP); + sigaddset(&sgnals, SIGCONT); + pthread_sigmask(SIG_BLOCK, &sgnals, 0); +#endif +} + FolderStatus getFolderStatus(QString path) { if (path != "/" && path.endsWith("/")) {