aboutsummaryrefslogtreecommitdiff
path: root/daemons/console-run.c
Commit message (Collapse)AuthorAgeFilesLines
* console-run: do not complain when running with empty /devSamuel Thibault2018-06-031-1/+4
| | | | | * daemons/console-run.c (open_console): Do not complain if errno is ENOENT on opening /dev/console.
* daemons: fix setsid(2) in console-runJustus Winter2013-08-291-2/+3
| | | | | | Only run setsid(2) if the process is not already the group leader. * daemons/console-run.c (open_console): Fix setsid(2).
* Check that runsystem script exists before trying it.Samuel Thibault2012-09-221-0/+7
| | | | | | | * init/init.c (launch_something): Check with file_name_lookup that runsystem script exists before calling start_child. * daemons/console-run.c (main): Check with file_name_lookup that runsystem script exists before opening a console for it.
* console-run: Create and settrans /dev/console when not already done.Ludovic Courtès2012-04-081-6/+12
| | | | | | | | | | | | This patch makes sure /libexec/console-run creates and installs /dev/console on the first run without considering it a failure if it didn't exist already. * daemons/console-run.c (TERMINAL_FIRST_TRY): Change node to `/dev/console'. (TERMINAL_SECOND_TRY): Change node to `/tmp/console'. (open_console): Clear FALLBACK when TRY == 1 and the `file_set_translator' call suceeded.
* 2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield2002-03-261-9/+9
| | | | * console-run.c (open_console): Use ERR, not errno.
* daemons/Marcus Brinkmann2001-01-301-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-17 Neal H Walfield <neal@cs.uml.edu> * console-run.c (open_console): Conform to new fshelp_start_translator semantics. init/ 2001-01-17 Neal H Walfield <neal@cs.uml.edu> * init.c (open_console): Conform to new fshelp_start_translator semantics. libfshelp/ 2001-01-17 Neal H Walfield <neal@cs.uml.edu> * fshelp.h: Add two new parameters to fshelp_open_fn_t: a port to the new task and a cookie. Add a new parameter, cookie, to fshelp_start_translator and fshelp_start_translator_long that will be passed to fshelp_open_fn_t. * fetch-root.c (fshelp_fetch_root): Conform to new fshelp_start_translator_long semantics. * start-translator-long.c (service_fsys_startup): Likewise. (fshelp_start_translator_long): Likewise. * start-translator.c (fshelp_start_translator): Likewise. libtreefs/ Conform to new fshelp_start_translator semantics. trans/ 2001-01-17 Neal H Walfield <neal@cs.uml.edu> * pump.c (start_pfinet): Conform to new fshelp_start_translator semantics. utils/ 2001-01-17 Neal H Walfield <neal@cs.uml.edu> * mount.c (do_mount): Conform to new fshelp_start_translator semantics. * settrans.c (main): Conform to new fshelp_start_translator semantics therby allowing us to print the pid of the an active translator.
* 1999-09-18 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>Thomas Bushnell1999-09-181-1/+1
| | | | | * runttys.c (run): Only call error if setsid returns -1. * console-run.c (open_console): Likewise.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-6/+3
| | | | | * console-run.c (open_console): Move first setting of TERMINAL and ARGZ_LEN outside of loop, quiets compiler warning.
* 1999-06-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-181-0/+222
* console-run.c: New file. * Makefile (targets, SRCS): Add console-run, console-run.c. (console-run): New target.