File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
5_Processes_Signals_Files_Pipes Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Some simple tasks from the course + additional practice with my own examples:
7
7
| 1. ` Processes/1_exec-cat.cpp ` | Just execute cat in forked proccess with error checks |
8
8
| 2. ` Processes/2_Zombie-checker.cpp ` | Checking zombie child processes in non-blocking mode |
9
9
| 2. ` Signals/1_Immortal.cpp ` | Just making immortal (ignoring ` SIGINT ` and ` SIGTERM ` ) child process |
10
+ | 2. ` Signals/2_POSIX.cpp ` | Simple usage of POSIX signals (catching SIGINT) |
10
11
11
12
12
13
@@ -42,6 +43,14 @@ Just making immortal (ignoring `SIGINT` and `SIGTERM`) child process.
42
43
![ Screen Recording 2022-03-17 at 12 29 11 PM] ( https://user-images.githubusercontent.com/44144647/158795441-6ad4b09a-ec8f-40c1-8f65-493f366bc1bf.gif )
43
44
44
45
46
+ ### ` Signals/2_POSIX.cpp `
47
+
48
+ Catch ` SIGINT ` with POSIX signal actions.
49
+
50
+ ##### runtime
51
+
52
+ ![ Screen Recording 2022-03-17 at 2 35 23 PM] ( https://user-images.githubusercontent.com/44144647/158800629-0964cb62-1007-437d-84a7-113344e64e40.gif )
53
+
45
54
46
55
## Learned new
47
56
* Non-blocking ` waitpid ` 's flag (` WNOHANG ` )
You can’t perform that action at this time.
0 commit comments