mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 18:33:24 +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
@ -10,6 +10,7 @@ REGRESSION_BUILD_DIR ?= $(INITRAMFS)/regression
|
||||
|
||||
# These test apps are sorted by name
|
||||
TEST_APPS := \
|
||||
alarm \
|
||||
clone3 \
|
||||
eventfd2 \
|
||||
execve \
|
||||
|
5
regression/apps/alarm/Makefile
Normal file
5
regression/apps/alarm/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
include ../test_common.mk
|
||||
|
||||
EXTRA_C_FLAGS := -static
|
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