Commit 2a23e851 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Match Signal enums to the actual signals they represent

Otherwise we end up sending stuff like SIGILL when we want to send
SIGTERM.
parent 817726eb
......@@ -24,6 +24,8 @@
#include <memory>
#include <signal.h>
#include <QObject>
#include <QVariant>
......@@ -53,14 +55,14 @@ public:
* A signal that can be sent to a process.
*/
enum Signal {
StopSignal,
ContinueSignal,
HangupSignal,
InterruptSignal,
TerminateSignal,
KillSignal,
User1Signal,
User2Signal
StopSignal = SIGSTOP,
ContinueSignal = SIGCONT,
HangupSignal = SIGHUP,
InterruptSignal = SIGINT,
TerminateSignal = SIGTERM,
KillSignal = SIGKILL,
User1Signal = SIGUSR1,
User2Signal = SIGUSR2
};
Q_ENUM(Signal)
......
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