[OpenSIPS-Devel] [OpenSIPS/opensips] 3b9112: Fix race condition on reporting successful per-pro...

Bogdan Andrei IANCU noreply at github.com
Tue Jan 4 12:31:01 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3b9112a8b993548ed5c1fefb138b20aa054c90cb
      https://github.com/OpenSIPS/opensips/commit/3b9112a8b993548ed5c1fefb138b20aa054c90cb
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M cfg_reload.c

  Log Message:
  -----------
  Fix race condition on reporting successful per-proc cfg reload

Set the initial per-proc reload status (to SENT) before actually sending the IPC job, to avoid any race condition (in updating the status) with the IPC callback (ran in the target process).

Fixes #2584
Many thanks to @etamme on providing the troubleshooting logs

(cherry picked from commit e85072cd6e9f54d0a593449b87e492c488393301)





More information about the Devel mailing list