diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-12-16 22:25:55 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-12-16 22:25:55 +0200 |
commit | 8426fc4411c9679a10863d7aa3ced077155e0016 (patch) | |
tree | 264e43314c759e8556ec2729fce58de015eeb286 /src/sysvinit.c | |
parent | 805b421d1880432bd6803a0e069ed10a4b1d53de (diff) | |
download | pies-8426fc4411c9679a10863d7aa3ced077155e0016.tar.gz pies-8426fc4411c9679a10863d7aa3ced077155e0016.tar.bz2 |
Minor fixes.
* grecs: Upgrade.
* lib/parsetime.c: Fix senseless compiler warnings.
* src/acl.c: Fix docstrings.
* src/meta1gram.y (yyerror): Change argument
* src/meta1lex.l: Add flex options
* src/pies.h (meta1error): Change signature.
* src/progman.c (prog_lookup_by_socket): Remove.
* src/sysvinit.c (sysvinit_stop_filter): Remove.
Diffstat (limited to 'src/sysvinit.c')
-rw-r--r-- | src/sysvinit.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/src/sysvinit.c b/src/sysvinit.c index 614940c..4fd4559 100644 --- a/src/sysvinit.c +++ b/src/sysvinit.c @@ -24,16 +24,18 @@ enum boot_state boot, single, normal, - max_boot_state }; static char *boot_state_name[] = { - "sysinit", - "boot", - "single", - "normal" + [sysinit] = "sysinit", + [boot] = "boot", + [single] = "single", + [normal] = "normal" }; +#define max_boot_state sizeof(boot_state_name) / sizeof (boot_state_name[0]) + + static char boot_state_str[] = "#*s "; static const char valid_runlevels[] = "0123456789S"; @@ -400,22 +402,6 @@ sysvinit_setenv (char const *data, int size) static void create_fifo (void); static int -sysvinit_stop_filter (struct prog *prog, void *data) -{ - switch (prog->v.p.status) - { - case status_enabled: - case status_listener: - prog_stop (prog, SIGTERM); - prog->v.p.status = status_disabled; /* See FIXME, progman.c:2364 */ - break; - default: - break; - } - return 0; -} - -static int sysvinit_fifo_handler (int fd, void *data) { static size_t size; |