aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorItay Grudev <itay@grudev.com>2016-05-04 14:36:51 +0100
committerItay Grudev <itay@grudev.com>2016-05-04 14:36:51 +0100
commitc5ea3f6d3053f81e07c2f7101a71a9926aa2676d (patch)
treece11aad8ea443b394e9a29e1a4adb03df0962b9a /README.md
parentMerge pull request #5 from i7achi/modern_cpp (diff)
downloadsingleapplication-c5ea3f6d3053f81e07c2f7101a71a9926aa2676d.tar.xz
Now handling all relevant signals
New handled signals are: SIGHUP, SIGQUIT, SIGBUS, SIGSYS, SIGPIPE, SIGALRM, SIGXCPU, SIGXFSZ
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 16 insertions, 8 deletions
diff --git a/README.md b/README.md
index f677ba6..465f0e9 100644
--- a/README.md
+++ b/README.md
@@ -54,14 +54,22 @@ Implementation
--------------
The library is implemented with a QSharedMemory block which is thread safe and guarantees a race condition will not occur. It also uses a QLocalSocket to notify the main process that a new instance had been spawned and thus invoke the `showUp()` signal.
-To handle an issue on `*nix` systems, where the operating system owns the shared memory block and if the program crashes the memory remains untouched, the library binds to the following signals and closes the program with error code = `128 + signum` where signum is the number representation of the signal listed below. Handling the signal is required in order to safely delete the `QSharedMemory` block.
-
-* `SIGINT ` - `2`
-* `SIGILL ` - `4`
-* `SIGABRT` - `6`
-* `SIGFPE ` - `8`
-* `SIGSEGV` - `11`
-* `SIGTERM` - `15`
+To handle an issue on `*nix` systems, where the operating system owns the shared memory block and if the program crashes the memory remains untouched, the library binds to the following signals and closes the program with error code = `128 + signum` where signum is the number representation of the signal listed below. Handling the signal is required in order to safely delete the `QSharedMemory` block. Each of these signals are potentially lethal and will results in process termination.
+
+* `SIGHUP` - `1`, Hangup.
+* `SIGINT` - `2`, Terminal interrupt signal
+* `SIGQUIT` - `3`, Terminal quit signal.
+* `SIGILL` - `4`, Illegal instruction.
+* `SIGABRT` - `6`, Process abort signal.
+* `SIGBUS` - `7`, Access to an undefined portion of a memory object.
+* `SIGFPE` - `8`, Erroneous arithmetic operation (such as division by zero).
+* `SIGSEGV` - `11`, Invalid memory reference.
+* `SIGSYS` - `12`, Bad system call.
+* `SIGPIPE` - `13`, Write on a pipe with no one to read it.
+* `SIGALRM` - `14`, Alarm clock.
+* `SIGTERM` - `15`, Termination signal.
+* `SIGXCPU` - `24`, CPU time limit exceeded.
+* `SIGXFSZ` - `25`, File size limit exceeded.
License