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;      static private inherit File : file;      varargs int exec(string file,string ... foo)   { +  if (sizeof(file)) {    string path; -  if(search(file,"/")) +  +  if(search(file,"/") >= 0)    return exece(combine_path(getcwd(),file),foo,getenv());    -  path=getenv("PATH"); +  path=getenv("PATH")||({});    -  foreach((path?(path/":"):({})),path) +  foreach(path, path)    if(file_stat(path=combine_path(path,file)))    return exece(path, foo,getenv()); -  +  }    return 69;   }      varargs int spawn(string s,object stdin,object stdout,object stderr)   {    int pid;       pid=fork();       if(pid==-1)