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

Function my_pid

pt.h:148–151  ·  view source on GitHub ↗

return processes pid */

Source from the content-addressed store, hash-verified

146
147/* return processes pid */
148inline static int my_pid(void)
149{
150 return pt ? pt[process_no].pid : getpid();
151}
152
153/* Get the process internal ID based on its PID
154 * @return: -1 or the index of the given process */

Callers 14

warning_builderFunction · 0.85
io_wait.hFile · 0.85
profiling_raise_eventFunction · 0.85
dp_my_pidFunction · 0.85
mongo_new_connectionFunction · 0.85
child_initFunction · 0.85
child_initFunction · 0.85
stream_init_writerFunction · 0.85
child_initFunction · 0.85
xmpp_processFunction · 0.85
mod_initFunction · 0.85
child_init_callidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected