path: root/src/prog.h
authorSergey Poznyakoff <>2013-01-07 12:31:58 (GMT)
committer Sergey Poznyakoff <>2013-01-07 12:31:58 (GMT)
commit5d2eff82abf052d5edb8f201559cb6e17bbf158f (patch) (side-by-side diff)
tree7151f3fc984021039be9549fc0017ce3fe30bb5c /src/prog.h
parent720f035564cbec85af84d1d9daff48d4068a4f3e (diff)
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/prog.h') (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prog.h b/src/prog.h
index 5a5ad13..8fddf97 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -83,3 +83,4 @@ struct prog
void progman_foreach (int (*filter) (struct prog *, void *data), void *data);
+void prog_stop (struct prog *prog, int sig);

Return to:

Send suggestions and report system problems to the System administrator.