1 |
/* Trace RPCs sent to selected ports |
/* Trace RPCs sent to selected ports |
2 |
|
|
3 |
Copyright (C) 1998,1999,2001 Free Software Foundation, Inc. |
Copyright (C) 1998,99,2001,02 Free Software Foundation, Inc. |
|
Written by Jose M. Moya <josem@gnu.org> |
|
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
858 |
if (file == MACH_PORT_NULL) |
if (file == MACH_PORT_NULL) |
859 |
error (1, errno, "command not found: %s", argv[0]); |
error (1, errno, "command not found: %s", argv[0]); |
860 |
|
|
861 |
err = task_create (mach_task_self (), 0, &traced_task); |
err = task_create (mach_task_self (), |
862 |
|
#ifdef KERN_INVALID_LEDGER |
863 |
|
NULL, 0, /* OSF Mach */ |
864 |
|
#endif |
865 |
|
0, &traced_task); |
866 |
assert_perror (err); |
assert_perror (err); |
867 |
|
|
868 |
/* Declare the new task to be our child. This is what a fork does. */ |
/* Declare the new task to be our child. This is what a fork does. */ |