User Tools

Site Tools


uphp:functions:process_kill

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:process_kill [2017/05/13 11:51]
admin created
uphp:functions:process_kill [2021/09/13 05:57] (current)
Line 1: Line 1:
-process_kill(int $process_id) +======process_kill======
  
-Tries to end a running script with process id passed to it.  Get the process id from [[process_list()]].+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> 
 + 
 +Send a kill request to a process 
 + 
 +====Description==== 
 + 
 +<well size="sm"><html> 
 +<span style="font-size:125%">process_kill ( 
 +<span style="color:green">int 
 +<span style="color:blue">$pid 
 +<span style="color:black">
 +</html></well> 
 + 
 +This function attempts to end a running script.  This does not ensure the process will die, it merely does it's best by setting flags in the running process that it should terminate after the next instruction.  If for some reason a script has frozen, it may not actually terminate in which case it will still be listed in the process list. 
 + 
 +====Parameter==== 
 + 
 +<html><b><span style="color:blue">$pid<span style="color:black"></b></html>:  The process ID, which can be obtained by using [[process_list()]] 
 + 
 +====Return Values==== 
 + 
 +None 
 + 
 +====See Also==== 
 + 
 +[[process_list()]] - Return an <html><b><span style="color:green">array<span style="color:black"></b></html> of the currently running scripts
  
-This does not ensure the process will die, it merely does it's best by setting flags in the running process that it should terminate after the next instruction.  If for some reason a script has frozen, it may not actually terminate in which case it will still be listed in the process list. 
uphp/functions/process_kill.1494676275.txt.gz · Last modified: 2021/09/13 05:56 (external edit)