pike.git / lib / modules / Process.pmod

version» Context lines:

pike.git/lib/modules/Process.pmod:74:       static void killer() {    remove_call_out(watcher);   #if constant(kill)    ::kill(signum("SIGKILL"));   #endif    if(timeout_cb) timeout_cb(this);    }   }    + #if constant(exece)   //!   int exec(string file,string ... foo)   {    if (sizeof(file)) {    string path;       if(has_value(file,"/"))    return exece(combine_path(getcwd(),file),foo,    [mapping(string:string)]getenv());       path=[string]getenv("PATH");       foreach(path ? path/":" : ({}) , path)    if(file_stat(path=combine_path(path,file)))    return exece(path, foo, [mapping(string:string)]getenv());    }    return 69;   } -  + #endif      static array(string) search_path_entries=0;      //!   string search_path(string command)   {    if (command=="" || command[0]=='/') return command;       if (!search_path_entries)    {