A few variables in p_sys could probably be local to the thread function. Also I think putting the thread cleanup code in place of abort() would be more legible. But I have no functional objections. -- Rémi Denis-Courmont http://www.remlab.net/ http://fi.linkedin.com/in/remidenis