Daemons?

Regan Heath regan at netmail.co.nz
Wed Aug 15 03:13:21 PDT 2007


Daniel Swe wrote:
> I'm trying to make a GUI that can display both opengl windows and/or
> terminal windows (using ncurses). So one could start the program
> using a terminal (using ./test -console for example) at work. But
> later when I get home I would like a opengl window so I write ./test
> -opengl , and the same instance of the program that was used for the
> console would pop up with all the bells and whistles for opengl. The
> problem is that I don't really know how to do it. Should I make a
> daemon that guis connect to? Is there any way to find the pid and
> communicate with the instance using tango? Or is there another more
> clever way? I'm currently using gdc and Tango in Ubuntu.

Named pipes perhaps:
http://open.itworld.com/nl/lnx_tip/08232002/

Regan


More information about the Digitalmars-d-learn mailing list