summaryrefslogtreecommitdiff
path: root/utils/rpctrace.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-01-02 11:22:17 +0000
committerRoland McGrath <roland@gnu.org>2002-01-02 11:22:17 +0000
commit4f2b31a3012962f2a3cb6d0ebcbdac2de4bdd894 (patch)
tree3d6a2ae13de3ad72f869590d9765297149047e32 /utils/rpctrace.c
parent9844ca85f2c1be96955eceda11ceb8bb551f8f74 (diff)
2002-01-02 Roland McGrath <roland@frob.com>
* rpctrace.c (traced_spawn) [KERN_INVALID_LEDGER]: Pass extra arguments to task_create for OSF variant. * shd.c (run): Likewise.
Diffstat (limited to 'utils/rpctrace.c')
-rw-r--r--utils/rpctrace.c9
1 files changed, 6 insertions, 3 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 <josem@gnu.org>
+ 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. */