pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:77:   }      object spawn(string s,object|void stdin,object|void stdout,object|void stderr,    function|void cleanup, mixed ... args)   {   #if 1    mapping data=([]);    if(stdin) data->stdin=stdin;    if(stdout) data->stdout=stdout;    if(stderr) data->stderr=stderr; + #ifdef __NT__    return create_process(split_quoted_string(s),data); -  + #else /* !__NT__ */ +  return create_process(({ "/bin/sh", "-c", s }),data); + #endif /* __NT__ */   #else       object pid;      #if constant(fork)    pid=fork();   #endif       if(pid)    {