What happens if thread creation fails?
Do something about exit status?
Work on return type here.
put SIGINT handling back in at some point. Out for now because it prevents proper handling of SIGINT when there is no master.
Add check for leaked file descriptors and such things here.
Add check for leaked file descriptors and such things here.