Use finit API to get runlevel instead of utmp

utmp is not available with musl libc
This commit is contained in:
Patrick Stewart committed 2016-04-13 22:07:39 +01:00
1 parent f7f222c924
commit 1177c734ce
5 files changed
+42 -18

No files matched your search

-1
View File
@@ -62,7 +62,6 @@ do { \
#define _pe(fmt, args...) do { fprintf(stderr, "finit:%s:%s() - " fmt ". Error %d: %s\n", __FILE__, __func__, ##args, errno, strerror(errno)); } while (0)
void runlevel_set (int pre, int now);
int runlevel_get (void);
char *runlevel_string (int levels);
int pid_alive (pid_t pid);