From 071b6e82e6d64861c01cbe5408458f768ec2b680 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 9 Oct 1995 08:29:32 +0000 Subject: Pass dealloc args in file_exec calls. --- init/init.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'init/init.c') diff --git a/init/init.c b/init/init.c index 20eb9471..22cf4ef1 100644 --- a/init/init.c +++ b/init/init.c @@ -274,13 +274,13 @@ run (char *server, mach_port_t *ports, task_t *task) ++progname; else progname = prog; - errno = file_exec (file, *task, 0, - progname, strlen (progname) + 1, /* Args. */ - "", 1, /* No env. */ - default_dtable, MACH_MSG_TYPE_COPY_SEND, 3, - ports, MACH_MSG_TYPE_COPY_SEND, INIT_PORT_MAX, - NULL, 0, /* No info in init ints. */ - NULL, 0, NULL, 0); + errno = file_exec (file, *task, MACH_MSG_TYPE_COPY_SEND, 0, + progname, strlen (progname) + 1, 0, /* Args. */ + "", 1, 0, /* No env. */ + default_dtable, MACH_MSG_TYPE_COPY_SEND, 3, 0, + ports, MACH_MSG_TYPE_COPY_SEND, INIT_PORT_MAX, 0, + NULL, 0, 0, /* No info in init ints. */ + NULL, 0, 0, NULL, 0, 0); if (!errno) break; @@ -355,14 +355,13 @@ run_for_real (char *filename, char *args, int arglen, mach_port_t ctty) ++progname; else progname = filename; - err = file_exec (file, task, 0, - args, arglen, - NULL, 0, /* No env. */ - default_dtable, MACH_MSG_TYPE_COPY_SEND, 3, - default_ports, MACH_MSG_TYPE_COPY_SEND, - INIT_PORT_MAX, - NULL, 0, /* No info in init ints. */ - NULL, 0, NULL, 0); + err = file_exec (file, task, MACH_MSG_TYPE_COPY_SEND, 0, + args, arglen, 0, + NULL, 0, 0, /* No env. */ + default_dtable, MACH_MSG_TYPE_COPY_SEND, 3, 0, + default_ports, MACH_MSG_TYPE_COPY_SEND, INIT_PORT_MAX, 0, + NULL, 0, 0, /* No info in init ints. */ + NULL, 0, 0, NULL, 0, 0); mach_port_deallocate (mach_task_self (), default_ports[INIT_PORT_PROC]); if (ctty != MACH_PORT_NULL) { -- cgit v1.2.3