| 244 | } |
| 245 | |
| 246 | static void xmpp_process(int rank) |
| 247 | { |
| 248 | /* if this blasted server had a decent I/O loop, we'd |
| 249 | * just add our socket to it and connect(). |
| 250 | */ |
| 251 | close(pipe_fds[1]); |
| 252 | |
| 253 | pid = my_pid(); |
| 254 | *xmpp_pid = pid; |
| 255 | |
| 256 | LM_DBG("started child connection process\n"); |
| 257 | if (!strcmp(backend, "component")) { |
| 258 | backend_mode = XMPP_COMP; |
| 259 | xmpp_component_child_process(pipe_fds[0]); |
| 260 | } |
| 261 | else if (!strcmp(backend, "server")) { |
| 262 | backend_mode = XMPP_SERV; |
| 263 | xmpp_server_child_process(pipe_fds[0]); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | |
| 268 | /* TODO */ |
nothing calls this directly
no test coverage detected