From 4f2b31a3012962f2a3cb6d0ebcbdac2de4bdd894 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 2 Jan 2002 11:22:17 +0000 Subject: 2002-01-02 Roland McGrath * rpctrace.c (traced_spawn) [KERN_INVALID_LEDGER]: Pass extra arguments to task_create for OSF variant. * shd.c (run): Likewise. --- utils/rpctrace.c | 9 ++++++--- utils/shd.c | 8 ++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 003e23e9..28a31165 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -1,7 +1,6 @@ /* Trace RPCs sent to selected ports - Copyright (C) 1998,1999,2001 Free Software Foundation, Inc. - Written by Jose M. Moya + Copyright (C) 1998,99,2001,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -859,7 +858,11 @@ traced_spawn (char **argv, char **envp) if (file == MACH_PORT_NULL) error (1, errno, "command not found: %s", argv[0]); - err = task_create (mach_task_self (), 0, &traced_task); + err = task_create (mach_task_self (), +#ifdef KERN_INVALID_LEDGER + NULL, 0, /* OSF Mach */ +#endif + 0, &traced_task); assert_perror (err); /* Declare the new task to be our child. This is what a fork does. */ diff --git a/utils/shd.c b/utils/shd.c index 2c08ac1f..3b8a2123 100644 --- a/utils/shd.c +++ b/utils/shd.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995, 1999 Free Software Foundation + Copyright (C) 1994,95,99,2002 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -92,7 +92,11 @@ run (char **argv, int fd0, int fd1) task_t task; pid_t pid; - errno = task_create (mach_task_self (), 0, &task); + errno = task_create (mach_task_self (), +#ifdef KERN_INVALID_LEDGER + NULL, 0, /* OSF Mach */ +#endif + 0, &task); if (errno) { perror ("task_create"); -- cgit v1.2.3