129 for (int signal : signalsToCatch) |
129 for (int signal : signalsToCatch) |
130 { |
130 { |
131 if (sigaction(signal, &sighandler, nullptr) == -1) |
131 if (sigaction(signal, &sighandler, nullptr) == -1) |
132 fprint(stderr, "Couldn't set signal handler %1: %2", signal, strerror(errno)); |
132 fprint(stderr, "Couldn't set signal handler %1: %2", signal, strerror(errno)); |
133 } |
133 } |
134 |
|
135 print("Crash catcher hooked to signals: %1\n", signalsToCatch); |
|
136 } |
134 } |
137 |
135 |
138 #endif // Q_OS_UNIX |
136 #endif // Q_OS_UNIX |