diff options
author | Roland McGrath <roland@gnu.org> | 1995-10-09 08:29:32 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-10-09 08:29:32 +0000 |
commit | 071b6e82e6d64861c01cbe5408458f768ec2b680 (patch) | |
tree | 5231d4ff2a684aed04309a440d076edd2aae8d7b | |
parent | e2a49f8b6437997c589c9425c32d900708e30815 (diff) |
Pass dealloc args in file_exec calls.
-rw-r--r-- | init/init.c | 29 |
1 files changed, 14 insertions, 15 deletions
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) { |