Skip to content

Commit aa1d9f9

Browse files
authored
5: Processes and etc. | Update README
1 parent 3fce35a commit aa1d9f9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

5_Processes_Signals_Files_Pipes/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Some simple tasks from the course + additional practice with my own examples:
77
|1. `Processes/1_exec-cat.cpp` | Just execute cat in forked proccess with error checks |
88
|2. `Processes/2_Zombie-checker.cpp` | Checking zombie child processes in non-blocking mode |
99
|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) |
1011

1112

1213

@@ -42,6 +43,14 @@ Just making immortal (ignoring `SIGINT` and `SIGTERM`) child process.
4243
![Screen Recording 2022-03-17 at 12 29 11 PM](https://user-images.githubusercontent.com/44144647/158795441-6ad4b09a-ec8f-40c1-8f65-493f366bc1bf.gif)
4344

4445

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+
4554

4655
## Learned new
4756
* Non-blocking `waitpid`'s flag (`WNOHANG`)

0 commit comments

Comments
 (0)