See Also
C Programming: Reading from inactive union members
Unions are an interesting construct that you’re likely to find in C programs. A union looks similar to a struct on the outside, but it has a special quality that it can only hold one of its declared values at a time. So, what happens if we write to one member and then read from […]
A program to send and handle every UNIX signal
While playing around with errno I decided to test what happens if I sent (and handled) every possible UNIX signal to a program. Running this as a non-root user, I figured I couldn’t break anything if I tried – so I went ahead and ran it. Let’s see: I skipped sending SIGKILL (9) for obvious […]