Changeset 3583

Show
Ignore:
Timestamp:
01/08/05 14:17:12 (4 years ago)
Author:
miyoshi
Message:

(sys_spawnve): Duplicate the whole elements of `argv'
to prevent errors in GC.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.1/src/ChangeLog.Meadow

    r3579 r3583  
     12005-01-08  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * w32proc.c (sys_spawnve): Duplicate the whole elements of `argv' 
     4        to prevent errors in GC. 
     5 
    162005-01-04  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
    27 
  • branches/2.1/src/w32proc.c

    r3314 r3583  
    742742  char *sepchars = " \t"; 
    743743 
     744#ifdef MEADOW 
     745  /* duplicate the whole elements of `argv' to prevent errors in GC. 
     746   */ 
     747  targ = argv; 
     748  while (*targ) 
     749    { 
     750      parg = alloca (strlen (*targ) + 1); 
     751      strcpy (parg, *targ); 
     752      *targ++ = parg; 
     753    } 
     754#endif 
    744755  /* We don't care about the other modes */ 
    745756  if (mode != _P_NOWAIT)