mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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 :)
This commit is contained in:
parent
0f6dd8748f
commit
e30c484a7a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue