1 |
/* |
/* |
2 |
Copyright (C) 1994, 1995, 1999 Free Software Foundation |
Copyright (C) 1994,95,99,2002 Free Software Foundation |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
92 |
task_t task; |
task_t task; |
93 |
pid_t pid; |
pid_t pid; |
94 |
|
|
95 |
errno = task_create (mach_task_self (), 0, &task); |
errno = task_create (mach_task_self (), |
96 |
|
#ifdef KERN_INVALID_LEDGER |
97 |
|
NULL, 0, /* OSF Mach */ |
98 |
|
#endif |
99 |
|
0, &task); |
100 |
if (errno) |
if (errno) |
101 |
{ |
{ |
102 |
perror ("task_create"); |
perror ("task_create"); |