MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_process_ID_by_PID

Function get_process_ID_by_PID

pt.h:155–164  ·  view source on GitHub ↗

Get the process internal ID based on its PID * @return: -1 or the index of the given process */

Source from the content-addressed store, hash-verified

153/* Get the process internal ID based on its PID
154 * @return: -1 or the index of the given process */
155inline static int get_process_ID_by_PID(pid_t pid)
156{
157 int i;
158
159 for( i=0 ; i<counted_max_processes ; i++ )
160 if (pt[i].pid==pid)
161 return i;
162
163 return -1;
164}
165
166void reset_process_slot(int p_id);
167

Callers 5

shutdown_opensipsFunction · 0.85
handle_sigsFunction · 0.85
mi_log_levelFunction · 0.85
w_profiling_procFunction · 0.85
mi_mem_pkg_dumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected