Roxen.git / server / config_actions / proc.pike

version» Context lines:

Roxen.git/server/config_actions/proc.pike:1:   /* -  * $Id: proc.pike,v 1.2 1997/09/03 05:19:29 per Exp $ +  * $Id: proc.pike,v 1.3 1997/09/03 07:51:35 grubba 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()   { -  if(!file_stat("/usr/proc/bin/")) throw("Only available under Solaris 2.4 and newer\n"); +  if(!file_stat("/usr/proc/bin/")) { +  throw("Only available under Solaris 2.5 and newer\n");    } -  + }      string proc(string prog, int pid )   {    if(!pid) pid=getpid();    object p = ((program)"privs")("Process status");    return popen("/usr/proc/bin/p"+prog+" "+pid);   }      string process_map(string in)   {