When creating the “hello world” of socket programming, a forking echo server/client, programmers often forget to reap child processes.

Interestingly, Wikipedia has a table of code for automatically reaping children in several different languages.

In Python it is rather simple using the standard SIG_IGN handler:

signal.signal(signal.SIGCHLD, signal.SIG_IGN)

http://docs.python.org/library/signal.html http://en.wikipedia.org/wiki/SIGCHLD