Hey HADASS, 2009/2/24 HADASS YAARI <[email protected]>: > Hello, > In my application the web server is a part from a bigger application and I > want to add the possibility to start/stop the server in runtime. > In order to do so, I changed my call to Wrun to the code that is shown in > the documentation, means to start the server by myself. > The problem is that the server aplication runs on different thread and after > starting the server it waits on waitForShutDown.
If you do not wish to wait for SIGKILL/Ctrl-C, then you should not call WServer::waitForShutDown but instead go with your other business. In that case you do not even need to spawn a thread as WServer::start() will spawn its own server thread(s). You should make sure that you call WServer::stop() eventually as it cleans up possible stale state associated with application sessions or widgets. Regards, koen ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
