mirror of
https://github.com/troglobit/finit.git
synced 2026-10-21 11:29:42 +00:00
Further cleanup, move signal setup to a file of its own.
finit.c:
o Perform signal setup as soon as possible, no need to do any
mounting of /proc or /sys beforehand
o Move signal setup and callbacks to a file of its own
o Use more #defines for hard coded strings
o Use a more neutral default hostname
signal.c:
o New file, for setup and signal handlers
o Add support for SIGSTOP/SIGSTP and SIGCONT. This pauses finit
respawning of xinit/shell. Useful for, e.g., debugging
o Document each ignored and handled signal better
o Disable SIGUSR1 and SIGUSR2 for now, will be reenabled later
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4657d9713a
commit
b0aec188bc
5 files changed
+222
-130
No files matched your search
@@ -28,7 +28,7 @@ ROOTDIR ?= $(shell pwd)
|
||||
VERSION = 1.0-pre
|
||||
PKG = finit-$(VERSION)
|
||||
EXEC = finit
|
||||
OBJS = finit.o helpers.o initctl.o
|
||||
OBJS = finit.o helpers.o initctl.o signal.o
|
||||
SRCS = $(OBJS:.o=.c)
|
||||
DEPS = $(addprefix .,$(SRCS:.c=.d))
|
||||
CPPFLAGS += -DVERSION=\"$(VERSION)\" -DWHOAMI=\"`whoami`@`hostname`\"
|
||||
|
||||
Reference in new issue
Block a user