On Nov 18, 2020, at 2:22 PM, kuroda.hay...@fujitsu.com<mailto:kuroda.hay...@fujitsu.com> wrote:
Oops.. I forgot putting my suggestion. Sorry. How about substituting sigalrm_delivered to true in the reschedule_timeouts()? Maybe this processing looks strange, so some comments should be put too. Here is an example: ```diff @@ -423,7 +423,14 @@ reschedule_timeouts(void) /* Reschedule the interrupt, if any timeouts remain active. */ if (num_active_timeouts > 0) + { + /* + * sigalrm_delivered is set to true, + * because any intrreputions might be occured. + */ + sigalrm_delivered = true; schedule_alarm(GetCurrentTimestamp()); + } } ``` Thanks for your suggestion. Attached! -- Best regards Japin Li
v7-0001-Allow-terminating-the-idle-sessions.patch
Description: v7-0001-Allow-terminating-the-idle-sessions.patch
v7-0002-Optimize-setitimer-usage.patch
Description: v7-0002-Optimize-setitimer-usage.patch