1 |
/* Start and maintain hurd core servers and system run state |
/* Start and maintain hurd core servers and system run state |
2 |
|
|
3 |
Copyright (C) 1993,94,95,96,97,98,99,2000,01 Free Software Foundation, Inc. |
Copyright (C) 1993,94,95,96,97,98,99,2000,01,02 |
4 |
|
Free Software Foundation, Inc. |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
7 |
The GNU Hurd is free software; you can redistribute it and/or modify |
The GNU Hurd is free software; you can redistribute it and/or modify |
363 |
error (0, errno, "%s", prog); |
error (0, errno, "%s", prog); |
364 |
else |
else |
365 |
{ |
{ |
366 |
task_create (mach_task_self (), 0, task); |
task_create (mach_task_self (), |
367 |
|
#ifdef KERN_INVALID_LEDGER |
368 |
|
NULL, 0, /* OSF Mach */ |
369 |
|
#endif |
370 |
|
0, task); |
371 |
if (bootstrap_args & RB_KDB) |
if (bootstrap_args & RB_KDB) |
372 |
{ |
{ |
373 |
printf ("Pausing for %s\n", prog); |
printf ("Pausing for %s\n", prog); |
439 |
} |
} |
440 |
#endif |
#endif |
441 |
|
|
442 |
task_create (mach_task_self (), 0, &task); |
task_create (mach_task_self (), |
443 |
|
#ifdef KERN_INVALID_LEDGER |
444 |
|
NULL, 0, /* OSF Mach */ |
445 |
|
#endif |
446 |
|
0, &task); |
447 |
proc_child (procserver, task); |
proc_child (procserver, task); |
448 |
proc_task2pid (procserver, task, &pid); |
proc_task2pid (procserver, task, &pid); |
449 |
proc_task2proc (procserver, task, &default_ports[INIT_PORT_PROC]); |
proc_task2proc (procserver, task, &default_ports[INIT_PORT_PROC]); |
1036 |
return -1; |
return -1; |
1037 |
} |
} |
1038 |
|
|
1039 |
task_create (mach_task_self (), 0, &child_task); |
task_create (mach_task_self (), |
1040 |
|
#ifdef KERN_INVALID_LEDGER |
1041 |
|
NULL, 0, /* OSF Mach */ |
1042 |
|
#endif |
1043 |
|
0, &child_task); |
1044 |
proc_child (procserver, child_task); |
proc_child (procserver, child_task); |
1045 |
proc_task2pid (procserver, child_task, &child_pid); |
proc_task2pid (procserver, child_task, &child_pid); |
1046 |
proc_task2proc (procserver, child_task, &default_ports[INIT_PORT_PROC]); |
proc_task2proc (procserver, child_task, &default_ports[INIT_PORT_PROC]); |