[OpenSIPS-Devel] [OpenSIPS/opensips] 405baf: Fine tunning of IPC support in internal_fork()

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 9 13:32:20 EST 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 405baf884fb09f5726a6654b586c3f08d52ed460
      https://github.com/OpenSIPS/opensips/commit/405baf884fb09f5726a6654b586c3f08d52ed460
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-01-09 (Tue, 09 Jan 2018)

  Changed paths:
    M mi/mi_core.c
    M net/net_tcp.c
    M net/net_udp.c
    M pt.c
    M pt.h
    M sr_module.c
    M timer.c

  Log Message:
  -----------
  Fine tunning of IPC support in internal_fork()

* introduced "flags" to internal_fork() for various options
* added OSS_FORK_NO_IPC to prevent the creation of IPC pipes during internal_fork - to be used when creating new processes without IPC support
* replaced id_of_pid() with get_process_ID_by_PID()


  Commit: 19756d46c3e80c7ee3915a5985bdbad849d605dc
      https://github.com/OpenSIPS/opensips/commit/19756d46c3e80c7ee3915a5985bdbad849d605dc
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-01-09 (Tue, 09 Jan 2018)

  Changed paths:
    M main.c

  Log Message:
  -----------
  Added support for graceful shutdown.

Graceful shutdown is based on IPC commands sent to worker processes, rather than terminating them by SIGTERM. This will allow the workers to complete on ongoing task and to terminate in a consistent state (as locking or data consistency).
TO DO:
 * move PKG memory dumping and memory stats to IPC/RPC (versus signals)
Nice to have:
 * child_destroy() functions to allow modules to do per-child/process cleanup (like closing DB conns, flushing, etc)


Compare: https://github.com/OpenSIPS/opensips/compare/cf190a95515d...19756d46c3e8


More information about the Devel mailing list