diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2015-12-20 00:50:52 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2015-12-20 00:59:25 +0200 |
commit | d479bd2f63445524253e16d8575a0592c266908d (patch) | |
tree | aae2188767328ee7dac100e14ad58ec75eeb35e5 /src/pies.h | |
parent | 84e4b3d5274c599ed30482bfe2ca8af080d936af (diff) | |
download | pies-d479bd2f63445524253e16d8575a0592c266908d.tar.gz pies-d479bd2f63445524253e16d8575a0592c266908d.tar.bz2 |
Bugfixes in init mode
* src/ctl.c (ctl_open): Add missing return.
* src/pies.c (config_parse): Return if tree is null.
(main) [INIT_EMU]: Print more info. Override default init_fifo.
Don't use syslog and control socket if running as init process.
* src/pies.h (init_fifo): New extern.
* src/progman.c (open_redirector): Return -1 if running as init process.
(prog_start): Always initialize redir[].
* src/sysvinit.c (init_fifo): New variable. Use it instead if the
INIT_FIFO macro.
(inittrans): Call create_fifo once, when transiting from boot to
normal state.
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -525,6 +525,7 @@ void sysvinit_runlevel_setup (int mask, int *wait); | |||
525 | void sysvinit_sysdep_begin (void); | 525 | void sysvinit_sysdep_begin (void); |
526 | 526 | ||
527 | extern char *sysvinit_environ_hint[]; | 527 | extern char *sysvinit_environ_hint[]; |
528 | extern char *init_fifo; | ||
528 | 529 | ||
529 | #ifndef INIT_FIFO | 530 | #ifndef INIT_FIFO |
530 | # define INIT_FIFO "/dev/initctl" | 531 | # define INIT_FIFO "/dev/initctl" |