42 Exam 06 [work]

During practice, printf works fine. But the exam’s grading script uses a fuzzer that sends thousands of signals rapidly. printf is not reentrant; it corrupts internal buffers, causing a segmentation fault.

: Broadcasting "server: client %d just arrived" or "server: client %d just left" to all other connected peers. Message Broadcasting 42 Exam 06