sys_alarm  [kernel/time.c]


Causes the system to generate a SIGALRM signal for the process after the number of specified seconds have elapsed.

Arguments

eax 27
ebx Number of seconds. If this argument is null, any pending request is canceled.

Return values

If the there was previously scheduled alarm the return value is a number of seconds until the previous request would have generated a SIGALRM signal.
If there was no previously scheduled alarm the return value is 0.

Remarks

Only one SIGALRM generation can be scheduled. If there is already a scheduled alarm, it will be rescheduled on each sequent call to sys_alarm.

Compatibility

n/a