diff options
author | Klaas Freitag <freitag@owncloud.com> | 2013-11-20 16:35:41 +0400 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2013-11-20 17:27:44 +0400 |
commit | e30c484a7ae53802b45ba90fe233512f4df92793 (patch) | |
tree | 0eaabdd42655df96633ae8cceebf301b40e9f925 /src/main.cpp | |
parent | 0f6dd8748fbb9d1753b4c93a561298029a01b04f (diff) |
Ignore the SIGPIPE signal as that disturbs debugging with Qt Creator.
It is questionable why this happens and if this patch really helps,
or if it might have side effects. Input appreciated :)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8bfe83163..a8ebbfb94 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ +#include <signal.h> #include "mirall/application.h" #include "mirall/theme.h" @@ -36,6 +37,8 @@ int main(int argc, char **argv) Mirall::Application app(argc, argv); app.initialize(); + signal(SIGPIPE, SIG_IGN); + if( app.giveHelp() ) { app.showHelp(); return 0; |