pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:1:   #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )      import Stdio;      program create_process = _static_modules.Builtin()->create_process;    - varargs int exec(string file,string ... foo) + int exec(string file,string ... foo)   {    if (sizeof(file)) {    string path;       if(search(file,"/") >= 0)    return exece(combine_path(getcwd(),file),foo,getenv());       path=getenv("PATH");       foreach(path ? path/":" : ({}) , path)
pike.git/lib/modules/Process.pmod:58:    break;       default:    ret[-1]+="\0"+x[e];    break;    }    }    return ret;   }    - varargs object spawn(string s,object stdin,object stdout,object stderr, + 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;    return create_process(split_quoted_string(s),data);   #else