[OpenSIPS-Devel] [OpenSIPS/opensips] 6a920d: rtpproxy: fix initializing child

Răzvan Crainea noreply at github.com
Mon Apr 19 14:26:56 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6a920dd3fd1e5605d08acbd79b0b9e9994008d00
      https://github.com/OpenSIPS/opensips/commit/6a920dd3fd1e5605d08acbd79b0b9e9994008d00
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-04-19 (Mon, 19 Apr 2021)

  Changed paths:
    M modules/rtpproxy/notification_process.c
    M modules/rtpproxy/rtpproxy.c

  Log Message:
  -----------
  rtpproxy: fix initializing child

If a process is not started with flag PROC_FLAG_INITCHILD, OpenSIPS will
not be interested in its init status, thus the extra process will not be
able to report its initializing state.
If however it was doing that, it would hit the bug reported in
ticket #2259, where the attendant was badly couting the number of
processes that need to be initialized, due to the fact that it would not
see any updates (in this case of the exports.procs structure) the
process would be doing in its mod_init().
Credits go to @ghmj2417 for reporting this in #2259 and to Bogdan
Andrei IANCU (@bogdan-iancu) for brainstorming the final solution.





More information about the Devel mailing list