Don't ever do this

I’m debugging a piece of code (which I didn’t write) that acts as a specialized web server when I found a little gem (more like a turd). When a system call fails, it simply calls exit(0) to quit immediately with no error message and no attempt to recover. Argggh!

Leave a Reply