Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP
When process got SIGSTOP/SIGTSTP, issig() dequeue them and return 0. But process could still have another signal pending after dequeue. So, after dequeue, check and return 1, if signal_pending. Signed-off-by: Jitendra Patidar <jitendra.patidar@nutanix.com>
This commit is contained in:
parent
a2c4e95cfd
commit
0d291cba6f
|
@ -186,6 +186,13 @@ issig(void)
|
|||
|
||||
schedule();
|
||||
#endif
|
||||
/*
|
||||
* Dequeued SIGSTOP/SIGTSTP.
|
||||
* Check if process has other singal pending.
|
||||
*/
|
||||
if (signal_pending(current))
|
||||
return (1);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue