Overhaul jobcomp_script.c thread handling.
Rather than creating a detached thread and using pthread_kill to stop it (which could lead to data loss), make an attached thread, signal it as appropriate then wait on proper shutdown with pthread_join.
Please register or sign in to comment