Kill all the forked sessions. */
| 2041 | |
| 2042 | /* Kill all the forked sessions. */ |
| 2043 | void ldbKillForkedSessions(void) { |
| 2044 | listIter li; |
| 2045 | listNode *ln; |
| 2046 | |
| 2047 | listRewind(ldb.children,&li); |
| 2048 | while((ln = listNext(&li))) { |
| 2049 | pid_t pid = (unsigned long) ln->value; |
| 2050 | serverLog(LL_WARNING,"Killing debugging session %ld",(long)pid); |
| 2051 | kill(pid,SIGKILL); |
| 2052 | } |
| 2053 | listRelease(ldb.children); |
| 2054 | ldb.children = listCreate(); |
| 2055 | } |
| 2056 | |
| 2057 | /* Wrapper for EVAL / EVALSHA that enables debugging, and makes sure |
| 2058 | * that when EVAL returns, whatever happened, the session is ended. */ |
no test coverage detected