mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
fix: enable timely delivery of POSIX signals while busy-looping
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5a23de1932
commit
e1480f94ee
11
regression/apps/alarm/alarm.c
Normal file
11
regression/apps/alarm/alarm.c
Normal file
@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
alarm(3);
|
||||
while (1) {
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user