Roxen.git / server / config_actions / proc.pike

version» Context lines:

Roxen.git/server/config_actions/proc.pike:1:   /* -  * $Id: proc.pike,v 1.8 1998/08/05 18:51:54 grubba Exp $ +  * $Id: proc.pike,v 1.9 1998/10/10 03:41:05 per Exp $    */      inherit "wizard";      constant name= "Status//Extended process status";   constant doc = "Shows detailed process status on Solaris 2.5 and 2.6.";      constant more=1;      void create()
Roxen.git/server/config_actions/proc.pike:101: Inside #if constant(getgrgid)
   (getgrgid(gid) || ({ (string)gid }))[0],    String.implode_nicely(groups));   #else    return sprintf("e/r/suid: %s<br>e/r/sgid: %d<br>groups: %O\n",    (getpwuid(uid) || ({ (string)uid }))[0],    gid,    String.implode_nicely(groups));   #endif /* constant(getgrgid) */   }    + constant ok_label = " Refresh "; + constant cancel_label = " Done "; +  + int verify_0() + { +  return 1; + } +    mixed page_0(object id, object mc)   {    string map = proc("map -x",(int)id->variables->pid);    if(sscanf(map, "%*sShared%*s") != 2)    map = process_map(proc("map",(int)id->variables->pid));    else    map = process_map2(map);       string tree = Array.map(proc("tree -a",(int)id->variables->pid)/"\n",format_proc_line,    (int)id->variables->pid||getpid())*"";