This shows you the differences between two versions of the page.
uphp:functions:process_list [2021/07/16 06:09] admin |
uphp:functions:process_list [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======process_list====== | ||
- | |||
- | < | ||
- | |||
- | Return an < | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameters==== | ||
- | |||
- | None | ||
- | |||
- | ====Return Values==== | ||
- | |||
- | An array of arrays containing key/value pairs with information about each running process: | ||
- | |||
- | ^Key^Type^Value Description^ | ||
- | |pid|< | ||
- | |start|< | ||
- | |script|< | ||
- | |line|< | ||
- | |flags|< | ||
- | |||
- | 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==== | ||
- | |||
- | <code php> | ||
- | < | ||
- | $process_list=process_list(); | ||
- | print_r($process_list); | ||
- | ?></ | ||
- | </ | ||
- | |||
- | 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 | ||