fix: enable timely delivery of POSIX signals while busy-looping

This commit is contained in:
jellllly420
2024-06-01 16:10:51 +08:00
committed by Tate, Hongliang Tian
parent 5a23de1932
commit e1480f94ee
7 changed files with 83 additions and 43 deletions

View File

@ -10,6 +10,7 @@ REGRESSION_BUILD_DIR ?= $(INITRAMFS)/regression
# These test apps are sorted by name
TEST_APPS := \
alarm \
clone3 \
eventfd2 \
execve \

View File

@ -0,0 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
include ../test_common.mk
EXTRA_C_FLAGS := -static

View File

@ -0,0 +1,11 @@
// SPDX-License-Identifier: MPL-2.0
#include <unistd.h>
int main()
{
alarm(3);
while (1) {
}
return 0;
}