feat(tty): 实现发送SIGINT终止信号 (#952)

* 实现SIGINT终止信号传递

* 添加test_sigint测试程序
This commit is contained in:
MemoryShore
2024-10-09 19:02:14 +08:00
committed by GitHub
parent 52dc4c3ee8
commit a8753f8fff
9 changed files with 103 additions and 10 deletions

View File

@ -0,0 +1,20 @@
ifeq ($(ARCH), x86_64)
CROSS_COMPILE=x86_64-linux-musl-
else ifeq ($(ARCH), riscv64)
CROSS_COMPILE=riscv64-linux-musl-
endif
CC=$(CROSS_COMPILE)gcc
.PHONY: all
all: main.c
$(CC) -static -o test_sigint main.c
.PHONY: install clean
install: all
mv test_sigint $(DADK_CURRENT_BUILD_DIR)/test_sigint
clean:
rm test_sigint *.o
fmt: