Menu

#68 -D option: "do not daemonize", -F option: "do not fork"

ver 1.2.x
closed-duplicate
nobody
core (30)
5
2007-05-17
2007-03-28
Anonymous
No

This patch is to allow to run OpenSER in "no-daemon" mode. We need to do this to run OpenSER under daemontools. There is a -D option already that means "Do not fork into daemon mode". But the problem with this option is that it really means more then just "Do not fork into daemon mode". It really means do not fork at all, i.e. do not create any child OpenSER processes. The patch below adds a variable no_daemon in main.c, makes -D option only change the no_daemon variable and makes the variable no_daemon only control whether OpenSER daemonizes itself or not. Another option, option -F, is added as the replacement of the old -D option. The -F option sets both no_daemon and dont_fork variables, so that it means exactly the same as -D option meant before.

Anatoly Pidruchny
NewCross Technologies
email: apidruchny@newxt.com

Discussion

  • Nobody/Anonymous

    Patch for the main.c file.

     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    Replaced by 1720847

     
  • Bogdan-Andrei Iancu

    • status: open --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB