Commit 05eccbb9 authored by Steffen Michels's avatar Steffen Michels

Merge branch 'undefined-signals' into 'master'

Add aborts for undefined signals to unify POSIX and Windows interface

Closes iTasks-SDK#349

See merge request !285
parents cdcfb9f2 9e3fd907
Pipeline #31136 passed with stage
in 3 minutes and 6 seconds
definition module System._Signal
from StdMisc import abort
//All posix signals for x86, arm and most other architectures
SIGHUP :== 1
SIGINT :== 2
......@@ -35,3 +37,5 @@ SIGPOLL :== 29
SIGPWR :== 30
SIGSYS :== 31
SIGUNUSED :== 31
SIGBREAK :== abort "SIGBREAK is not supported on POSIX\n"
definition module System._Signal
from StdMisc import abort
//Windows signals according to signal.h
SIGINT :== 2
SIGILL :== 4
......@@ -8,3 +10,32 @@ SIGSEGV :== 11
SIGTERM :== 15
SIGBREAK :== 21
SIGABRT :== 22
SIGHUP :== abort "SIGHUP is not supported on Windows\n"
SIGQUIT :== abort "SIGQUIT is not supported on Windows\n"
SIGTRAP :== abort "SIGTRAP is not supported on Windows\n"
SIGIOT :== abort "SIGIOT is not supported on Windows\n"
SIGBUS :== abort "SIGBUS is not supported on Windows\n"
SIGKILL :== abort "SIGKILL is not supported on Windows\n"
SIGUSR1 :== abort "SIGUSR1 is not supported on Windows\n"
SIGUSR2 :== abort "SIGUSR2 is not supported on Windows\n"
SIGPIPE :== abort "SIGPIPE is not supported on Windows\n"
SIGALRM :== abort "SIGALRM is not supported on Windows\n"
SIGSTKFLT :== abort "SIGSTKFLT is not supported on Windows\n"
SIGCHLD :== abort "SIGCHLD is not supported on Windows\n"
SIGCONT :== abort "SIGCONT is not supported on Windows\n"
SIGSTOP :== abort "SIGSTOP is not supported on Windows\n"
SIGTSTP :== abort "SIGTSTP is not supported on Windows\n"
SIGTTIN :== abort "SIGTTIN is not supported on Windows\n"
SIGTTOU :== abort "SIGTTOU is not supported on Windows\n"
SIGURG :== abort "SIGURG is not supported on Windows\n"
SIGXCPU :== abort "SIGXCPU is not supported on Windows\n"
SIGXFSZ :== abort "SIGXFSZ is not supported on Windows\n"
SIGVTALRM :== abort "SIGVTALRM is not supported on Windows\n"
SIGPROF :== abort "SIGPROF is not supported on Windows\n"
SIGWINCH :== abort "SIGWINCH is not supported on Windows\n"
SIGIO :== abort "SIGIO is not supported on Windows\n"
SIGPOLL :== abort "SIGPOLL is not supported on Windows\n"
SIGPWR :== abort "SIGPWR is not supported on Windows\n"
SIGSYS :== abort "SIGSYS is not supported on Windows\n"
SIGUNUSED :== abort "SIGUNUSED is not supported on Windows\n"
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