Commit 40a5de8b authored by Thiago Macieira's avatar Thiago Macieira Committed by hjk
Browse files

Do not abort Creator on SIGPIPE



This signal must be ignored. QProcess and QTcpSocket routinely
generate it and they have code to set this signal to ignored. Changing
it in the crash handler is a bad idea.

Change-Id: Ic8c020a0767ff0c5160d0ae470214de7fc569d5f
Reviewed-by: default avatarRobin Burchell <robin+qt@viroteck.net>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent fa876313
......@@ -116,7 +116,7 @@ void setupCrashHandler()
// restarted Qt Creator.
// SA_ONSTACK - Use alternative stack.
sa.sa_flags = SA_RESETHAND | SA_NODEFER | SA_ONSTACK;
const int signalsToHandle[] = { SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGPIPE, 0 };
const int signalsToHandle[] = { SIGILL, SIGFPE, SIGSEGV, SIGBUS, 0 };
for (int i = 0; signalsToHandle[i]; ++i) {
if (sigaction(signalsToHandle[i], &sa, 0) == -1 )
qWarning("Warning: Failed to install signal handler for SIGILL (%s).", Q_FUNC_INFO);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment