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:
Jitendra Patidar 2024-08-21 10:03:40 +00:00
parent a2c4e95cfd
commit 0d291cba6f
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}