MCPcopy Create free account
hub / github.com/3proxy/3proxy / mysigterm

Function mysigterm

src/3proxy.c:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void mysigterm (int sig){
118 conf.paused++;
119 usleep(999*SLEEPTIME);
120 usleep(999*SLEEPTIME);
121#ifndef NOODBC
122 pthread_mutex_lock(&log_mutex);
123 close_sql();
124 pthread_mutex_unlock(&log_mutex);
125#endif
126 conf.timetoexit = 1;
127}
128
129#endif
130

Callers

nothing calls this directly

Calls 1

close_sqlFunction · 0.85

Tested by

no test coverage detected