Age | Commit message (Collapse) | Author |
|
* utils/settrans.c (main): In case of chroot_command, get status from waitpid()
call, and call error() appropriately.
|
|
Start the translator specified by the NODE's passive translator record
and set it as NODE's active translator. This is the equivalent of
doing:
% settrans --active /node $(showtrans /node)
* utils/settrans.c (argp_option): Add --start.
(parse_opt): Handle --start.
(main): Retrieve the passive translator record if --start is given.
|
|
Previously, settrans --chroot would just exec the target. Create a
new process for that purpose. Wait for its completion, then ask the
translator (nicely by default) to go away. If it refuses with EBUSY,
it might be because some process has daemonized inside the chrooted
environment.
This fixes the following bug when settrans is used with fakeroot:
% fakeroot-hurd /bin/true 2>&1 | tee
<hangs>
Here, fakeroot-hurd execs settrans with --chroot, settrans execs
/hurd/fakeauth which will eventually exec the target /bin/true. When
true terminates, it will close its stdout and stderr. But
/hurd/fakeroot's stderr is also connected to tee's stdin, preventing
tee from exiting.
* utils/settrans.c (main): Fix the teardown of chrooted environments.
|
|
This switch makes settrans write the pid file of the active translator
it starts to a file. This makes the pid easily retrievable for test
suites.
* utils/settrans.c (options): Add --pid-file.
(main): Add variable pid_file.
(parse_opt): Handle --pid-file switch.
(open_node): Write pid file.
|
|
* utils/settrans.c (options): Reference TRANSLATOR in `-a' help message.
|
|
* utils/settrans.c (options): Rephrase -a and -p help to be more precise.
|
|
* utils/settrans.c (options): Document that -p is the default option for
settrans.
|
|
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
* settrans.c (main): Return 0 instead of using break (which only
gets us out of the while loop).
|
|
* settrans.c (options): Add --chroot/-C option.
(main_opt): Parse that option, take following args until "--"
as a command to exec chroot'd to the translated node.
|
|
* settrans.c (options): New option `--orphan'.
Fix other comments to aviod confusion.
(main): Add FS_TRANS_ORPHAN to ACTIVE_FLAGS if `--orphan' is
specified.
|
|
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.
|
|
|
|
* ps.c (main): Fix return type to int, and use return.
* ids.c (main): Likewise.
* w.c (main): Likewise.
* login.c (main): Likewise.
* settrans.c (main): Likewise.
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* storeinfo.c (main): Likewise.
|
|
Print the translated-node name instead of the translator name if the
translator startup error is due to opening it.
|
|
|
|
Update to reflect some minor changes in the way argp works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(main): Rearrange meanings of arguments somewhat.
|
|
|
|
|
|
(_STRINGIFY): New macro. Ick.
|
|
(main): Pass ARGP_IN_ORDER to argp_parse (it's no longer the default), and
deal with the fallout.
|
|
|
|
(options): Rearrange a bit.
|
|
Change uses of the INDEX field in argp_state structures to use NEXT instead.
|
|
Change to use the new wierd callback interface to fshelp_start_translator.
|
|
Change --force/-f to --goaway/-g.
Add flags for killing translators: --recurse/-r, --force/-f, --nosync/-S.
(doc): New variable.
(main): Support new flags. Have some of the options update flag words
instead of setting variables.
|
|
(main): Set ARGZ inside of parse_opt.
|
|
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
Include <argp.h> not <getopt.h>.
|
|
|
|
(options, main): Use '&' instead of '?' to mean help.
|
|
|
|
getopt without affecting those following the translator name.
|
|
by showtrans.
|
|
|