This helps various debugging tools give better output. See fling/server.c for an example of the signal handling logic required.