- Socket emits are shown with the path in bold in the beginning
- Name is after that
- Sub points contain the payload
- Two users are connected.
I hereby claim:
To claim this, I am signing this object:
signal_handling.c demonstrates 2 (of many) methods of handling signals in Linux: signalfd and signal(). We want to demonstrate that these 2 work differently with GDB.
Compile the program with -g flag then run under GDB. To run with signalfd:
(gdb) r signalfd
Try pressing Ctrl+C. This will stop GDB and also terminate the program as it receives a SIGINT.
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/jackc/pgx/v5/pgconn" | |
| "github.com/jackc/pgx/v5/pgproto3" |