/[hurd]/hurd/init/init.c
ViewVC logotype

Diff of /hurd/init/init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.126 by roland, Fri Aug 24 02:37:41 2001 UTC revision 1.127 by roland, Wed Jan 2 11:21:41 2002 UTC
# Line 1  Line 1 
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
# Line 362  run (const char *server, mach_port_t *po Line 363  run (const char *server, mach_port_t *po
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);
# Line 434  run_for_real (char *filename, char *args Line 439  run_for_real (char *filename, char *args
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]);
# Line 1027  start_child (const char *prog, char **pr Line 1036  start_child (const char *prog, char **pr
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]);

Legend:
Removed from v.1.126  
changed lines
  Added in v.1.127

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26