aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-07 14:31:58 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-01-07 14:31:58 +0200
commit5d2eff82abf052d5edb8f201559cb6e17bbf158f (patch)
tree7151f3fc984021039be9549fc0017ce3fe30bb5c /src/pies.h
parent720f035564cbec85af84d1d9daff48d4068a4f3e (diff)
downloadpies-5d2eff82abf052d5edb8f201559cb6e17bbf158f.tar.gz
pies-5d2eff82abf052d5edb8f201559cb6e17bbf158f.tar.bz2
Fix sysvinit execution environment, simplify boot state system.
* src/pies.c (_cb_runlevels): Bugfix. (set_console_dev): Move to sysvinit.c * src/pies.h (progman_sysvinit_enable): Remove proto. (console_open, telinit): New protos. (sysvinit_environ_hint): New extern. * src/prog.h (prog_stop): New proto. * src/progman.c (env_concat): Bugfix. (env_concat): In sysvinit mode, apply sysvinit_environ_hint to the environment. (console_open, console_stty): Move to sysvinit.c * src/sysvinit.c (boot_state): Simplify state set. (getinitdefault, askrunlevel): New functions. (sysvinit_runlevel_setup): New function. (enablecomp): Change signature to match progman_foreach API. (sysvinit_begin): Prepare console, become a session leader, prepare environment. (inittrans): Call sysvinit_runlevel_setup * src/socket.c (calc_fd_max): Fix return type. * src/acl.c (acl_copy): Remove unused variable.
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pies.h b/src/pies.h
index 0da13e3..ca50a26 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -303,8 +303,6 @@ void progman_run_comp (struct component *comp, int fd,
303 303
304void progman_iterate_comp (int (*fun) (struct component *, void *), 304void progman_iterate_comp (int (*fun) (struct component *, void *),
305 void *data); 305 void *data);
306void progman_sysvinit_enable (int (*fun) (struct component *, int, void *),
307 void *data);
308 306
309void fd_report (int fd, const char *msg); 307void fd_report (int fd, const char *msg);
310 308
@@ -462,6 +460,10 @@ void sysvinit_begin (void);
462int inittrans (void); 460int inittrans (void);
463int is_comp_wait (struct component *comp); 461int is_comp_wait (struct component *comp);
464int is_valid_runlevel (int c); 462int is_valid_runlevel (int c);
463int console_open (int mode);
464int telinit (const char *arg);
465
466extern char *sysvinit_environ_hint[];
465 467
466#ifndef INIT_FIFO 468#ifndef INIT_FIFO
467# define INIT_FIFO "/dev/initctl" 469# define INIT_FIFO "/dev/initctl"

Return to:

Send suggestions and report system problems to the System administrator.