jack ciabatta wrote: > I'm writing a simple tcp multithread daemon on a Linux > i386 system. For this moment the script is very short. I > would like have 3 distinct threads that answer to the > clients. Every thread answers and exits (with 'exit' > client command) separately. At this moment when a thread > quit, kill all threads.
First of all, upgrade to the lastest version of 'threads' and threads::shared from CPAN. Normally, a thread should 'return' and not 'exit'. However, there is a whole section on this in the 'threads' POD called 'EXITING A THREAD'.