[omniORB] Trouble when daemonising

Thorsten Glaser thorsten.glaser at sygroup.ch
Fri Aug 29 13:19:32 BST 2008


Duncan Grisby dixit:

>ORB_init() creates several threads. Forking only gives you a copy of the
>thread that did the fork(), meaning the child process is broken. There's
>no way you can daemonise after ORB_init, I'm afraid.

Okay, thanks for confirming.

>If you want to do your own command line parsing, all the -ORB arguments
>apart from -ORBhelp take a single extra argument. That isn't going to
>change.

Aah, okay. I just wrote something which calls -ORBhelp (python two-liner)
from a shell script, parses its output and creates a file which then calls
parse.add_option() from optparse on every argument, while cursing that it
now needs two dashes (that’s life).

But I’ll consider that -ORBhelp is the only exception, and maybe in the
future will change that code ☺ Now it already exists.

Thanks!
//Thorsten
-- 
SyGroup GmbH
Thorsten Glaser

Tel: +41 61 333 80 33            Güterstrasse 86
Fax: +41 61 383 14 67            4053 Basel
Web: www.sygroup.ch              thorsten.glaser at sygroup.ch



More information about the omniORB-list mailing list