How do you kill all the processes of a fork()??

Having some massive problems with not being able to close a program due to other processes of a fork still being open.

(For source code, check out http://cboard.cprogramming.com/showt...405#post806405 )