When returning from schedule_tail() ...
When returning from schedule_tail(), is it still necessary to check for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) before resuming task ?
On Wed, 15 Jul 2020 10:05:25 -0400, William Tambe said:
When returning from schedule_tail(), is it still necessary to check for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) before resuming task ?
Well.. since the semantics of signals are defined as being delivered when a process returns from the kernel, how would you avoid checking for a pending signal and still maintain the semantics?
On Wed, Jul 15, 2020 at 7:32 PM Valdis Klētnieks <valdis.kletnieks@vt.edu> wrote:
On Wed, 15 Jul 2020 10:05:25 -0400, William Tambe said:
When returning from schedule_tail(), is it still necessary to check for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) before resuming task ?
Well.. since the semantics of signals are defined as being delivered when a process returns from the kernel, how would you avoid checking for a pending signal and still maintain the semantics?
schedule_tail() is called for a task that has just been created, hence the reason why I asked whether for such as newly created task, is it necessary to check for (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME) ?
participants (2)
-
Valdis Klētnieks -
William Tambe