From 9f9807d4d3e0ecabc9bb67658d58644d714a9fd7 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 31 Mar 2020 13:09:04 +0200 Subject: cleanup: initd: simplify and merge linux specific code into main.c Targetting anything else than Linux isn't really relevant. All other systems ($BSD and other Unices) are a closed ecosystem where kernel & userspace are developed together. They don't need something like a third party init system, so compatibillity can be largely ignored. Signed-off-by: David Oberhollenzer --- initd/init.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'initd/init.h') diff --git a/initd/init.h b/initd/init.h index 50f799a..6b68ef6 100644 --- a/initd/init.h +++ b/initd/init.h @@ -77,29 +77,6 @@ void supervisor_start(int id); void supervisor_stop(int id); -/********** signal_.c **********/ - -/* - Setup signal handling. Returns -1 on error, a file descriptor on - success. - - The returned file descriptor can be polled and becomes readable - when a signal arrives. Reading from it returns a signalfd_siginfo - structure. - - The returned file descriptor has the close on exec flag set. - - The kernel is also told to send us SIGINT signals if a user presses - the local equivalent of CTRL+ALT+DEL. -*/ -int sigsetup(void); - -/* - Undo everything that sigsetup() changed about signal handling and - restore the default. -*/ -void sigreset(void); - /********** initsock.c **********/ int init_socket_create(void); -- cgit v1.2.3