| 710 | |
| 711 | |
| 712 | void stream_process(int rank) |
| 713 | { |
| 714 | /* suppress the E_CORE_LOG event for new logs while handling |
| 715 | * the event itself */ |
| 716 | suppress_proc_log_event(); |
| 717 | |
| 718 | if (init_worker_reactor("event_stream Sender", RCT_PRIO_MAX) != 0) { |
| 719 | LM_BUG("failed to init event_stream reactor"); |
| 720 | abort(); |
| 721 | } |
| 722 | jsonrpc_init_reader(); |
| 723 | |
| 724 | if (reactor_add_reader(stream_pipe[0], F_EV_JSONRPC_CMD, RCT_PRIO_ASYNC, NULL)<0){ |
| 725 | LM_CRIT("failed to add event_stream pipe to reactor\n"); |
| 726 | abort(); |
| 727 | } |
| 728 | |
| 729 | reactor_main_loop(STREAM_REACTOR_TIMEOUT, out_err, stream_cleanup_old()); |
| 730 | |
| 731 | out_err: |
| 732 | destroy_io_wait(&_worker_io); |
| 733 | reset_proc_log_event(); |
| 734 | abort(); |
| 735 | } |
nothing calls this directly
no test coverage detected