From 86854445437574dfbbb2a2f8c672a3e1400cd3a9 Mon Sep 17 00:00:00 2001 From: David Xu Date: Tue, 11 Mar 2003 06:01:44 +0000 Subject: [PATCH] This is a force-commit for: kern_sig.c 1.215 kern_thread.c 1.103 kern_exit.c 1.199 proc.h 1.302 Orignal code would suspend an already suspended thread, if user presses ^Z while a threaded program is running. Also there is a race between job control and thread_exit(), the new code tests job control requesting before thread exits, in wait() syscall, be sure to check child process is fully stopped, this avoids a later SIGCHILD and returns STOPPED status twice for a threaded child proc. A thread_stopped() function is added for common code in several places.