You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2002/06/10 18:20:52 UTC

cvs commit: apr/threadproc/netware proc.c

bnicholes    2002/06/10 09:20:52

  Modified:    threadproc/netware proc.c
  Log:
  Check the detached flag and spawn the NLM appropriately.
  
  Revision  Changes    Path
  1.14      +4 -3      apr/threadproc/netware/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/netware/proc.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- proc.c	29 May 2002 21:13:01 -0000	1.13
  +++ proc.c	10 Jun 2002 16:20:52 -0000	1.14
  @@ -294,6 +294,7 @@
                                 		apr_pool_t *pool)
   {
   	wiring_t		wire;
  +    int             addr_space;
   
       wire.infd  = attr->child_in ? attr->child_in->filedes : FD_UNUSED;
       wire.outfd = attr->child_out ? attr->child_out->filedes : FD_UNUSED;
  @@ -303,9 +304,9 @@
       newproc->out = attr->parent_out;
       newproc->err = attr->parent_err;
   
  -    /* XXX Switch to spawning in separate address spaces once the address
  -        space shutdown problem is fixed. */   
  -    if ((newproc->pid = processve(progname, PROC_CURRENT_SPACE, (const char**)env, &wire, 
  +    addr_space = attr->detached ? 0 : PROC_CURRENT_SPACE;
  +
  +    if ((newproc->pid = processve(progname, addr_space, (const char**)env, &wire, 
           NULL, NULL, (const char **)args)) == 0) {
           return errno;
       }