======process_list====== WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0 Return an array of the currently running scripts ====Description==== array process_list ( ) ====Parameters==== None ====Return Values==== An array of arrays containing key/value pairs with information about each running process: ^Key^Type^Value Description^ |pid|int|Process ID, can be used with [[process_kill()]] to request termination| |start|int|Run time of the script| |script|string|Name of the running script| |line|int|Line number of the script if applicable| |flags|int|Internal process flags, see below| The internal process flags can be any of the following (OR) as a bit mask: ^Value^Description^ |1|END - script has been signaled to end| |16|LOCKED - internal locks prevent the script from terminating| |64|SENT_OUTPUT - output has already been started to standard output| ====Example====
Typical output for the above example: [$process_list] = Array ( [1] = Array ( (int) [pid] => 1 (int) [start] => 245285 (string) [script] => process_list__x.cgi (int) [flags] => 0 ) ) ====See Also==== [[process_kill()]] - Send a kill request to a process