From 426351562d55a06e490fad6a87cd7d0106280ab6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 30 Dec 1998 06:50:40 +0000 Subject: 1998-12-27 Roland McGrath Use a struct hurd_port for the cached exec server port, so it is properly reference-counted and locked. * boot-start.c (diskfs_exec): Variable removed. (diskfs_start_bootstrap): Make it a local here. Install that port in _diskfs_exec_portcell. (diskfs_S_fsys_init): Use _diskfs_exec_portcell instead of diskfs_exec. * init-init.c (_diskfs_exec_portcell): New variable. (diskfs_init_diskfs): Initialize it. * priv.h: Declare it. * diskfs.h (diskfs_exec, diskfs_exec_ctl): Remove decls. * file-exec.c (diskfs_S_file_exec): Use _diskfs_exec_portcell instead of diskfs_exec. --- libdiskfs/priv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdiskfs/priv.h') diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index 11cbe534..d45b3f22 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "diskfs.h" @@ -36,6 +37,9 @@ extern const char *_diskfs_chroot_directory; /* If --boot-command is given, this points to the program and args. */ extern char **_diskfs_boot_command; +/* Port cell holding a cached port to the exec server. */ +extern struct hurd_port _diskfs_exec_portcell; + volatile struct mapped_time_value *_diskfs_mtime; extern struct argp_option diskfs_common_options[]; -- cgit v1.2.3