User Tools

Site Tools


uphp:functions:process_list

This is an old revision of the document!


array process_list()

returns an array of arrays containing key-value pairs with information about each running process

example: [1] = Array (

  (int) [pid] => 1
  (int) [start] => 331685
  (string) [script] => ping.cgi
  (int) [flags] => 0

)

array key type value
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 script running
flags int internal process flags

Flags could be any of the following (OR) as a bit mask

value description
1 END flag, script is signaled to end
16 LOCKED - internal locks prevent the script from terminating
64 SENT_OUTPUT - output has already been started to standard output
uphp/functions/process_list.1494676863.txt.gz · Last modified: 2021/09/13 05:56 (external edit)