You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by cl...@apache.org on 2004/06/11 22:23:09 UTC

cvs commit: apr/threadproc/netware proc.c

clar        2004/06/11 13:23:09

  Modified:    threadproc/netware proc.c
  Log:
  Replaced APR_PROGRAM_ENV with new enum APR_PROGRAM_ADDRSPACE when starting a child program
  
  Revision  Changes    Path
  1.28      +3 -4      apr/threadproc/netware/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/netware/proc.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- proc.c	13 Feb 2004 09:38:37 -0000	1.27
  +++ proc.c	11 Jun 2004 20:23:09 -0000	1.28
  @@ -173,9 +173,8 @@
   APR_DECLARE(apr_status_t) apr_procattr_cmdtype_set(apr_procattr_t *attr,
                                        apr_cmdtype_e cmd) 
   {
  -    if ((cmd != APR_PROGRAM) && (cmd != APR_PROGRAM_ENV))
  -        return APR_ENOTIMPL;
  -    attr->cmdtype = cmd;
  +    if (cmd == APR_PROGRAM_ADDRSPACE)
  +        attr->cmdtype = cmd;
       return APR_SUCCESS;
   }
   
  @@ -288,7 +287,7 @@
       /* attr->detached and PROC_DETACHED do not mean the same thing.  attr->detached means
        * start the NLM in a separate address space.  PROC_DETACHED means don't wait for the
        * NLM to unload by calling wait() or waitpid(), just clean up */
  -    addr_space = PROC_LOAD_SILENT | ((attr->cmdtype == APR_PROGRAM_ENV) ? 0 : PROC_CURRENT_SPACE);
  +    addr_space = PROC_LOAD_SILENT | ((attr->cmdtype == APR_PROGRAM_ADDRSPACE) ? 0 : PROC_CURRENT_SPACE);
       addr_space |= (attr->detached ? PROC_DETACHED : 0);
   
       if (attr->currdir) {