The pthread_create here should be pthread_join. -Sam ----- NOTES After a successful call to pthread_create(), the caller is guaranteed that the target thread has terminated. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html