summaryrefslogtreecommitdiff
path: root/utils/shd.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/shd.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/shd.c')
-rw-r--r--utils/shd.c8
1 files changed, 6 insertions, 2 deletions
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");