* exceptions.cc (sig_handle_tty_stop): Check parent PID_NOCLDSTOP rather than
erroneously checking *my own* sigtodo.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2003-09-10  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
|  | 	* exceptions.cc (sig_handle_tty_stop): Check parent PID_NOCLDSTOP | ||||||
|  | 	rather than erroneously checking *my own* sigtodo. | ||||||
|  |  | ||||||
| 2003-09-10  Christopher Faylor  <cgf@redhat.com> | 2003-09-10  Christopher Faylor  <cgf@redhat.com> | ||||||
|  |  | ||||||
| 	* Makefile.in: Add some more -fomit-frame-pointer files. | 	* Makefile.in: Add some more -fomit-frame-pointer files. | ||||||
|   | |||||||
| @@ -611,7 +611,7 @@ sig_handle_tty_stop (int sig) | |||||||
|   if (my_parent_is_alive ()) |   if (my_parent_is_alive ()) | ||||||
|     { |     { | ||||||
|       pinfo parent (myself->ppid); |       pinfo parent (myself->ppid); | ||||||
|       if (!(parent->getsig (SIGCHLD).sa_flags & SA_NOCLDSTOP)) |       if (NOTSTATE (parent, PID_NOCLDSTOP)) | ||||||
| 	sig_send (parent, SIGCHLD); | 	sig_send (parent, SIGCHLD); | ||||||
|     } |     } | ||||||
|   sigproc_printf ("process %d stopped by signal %d, myself->ppid_handle %p", |   sigproc_printf ("process %d stopped by signal %d, myself->ppid_handle %p", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user