This was pointed out to me (inadvertently) by one of the clients running
webware.

If you use the start up script to launch webkit the process id is
written into a file. This file is later used to shut down the process.
But, if you launch webkit with the script and then launch it with the
script again you have problems. The first launch writes into the pid
file and grabs the port. The second launch writes into the pid file and
then tries to grab the port, but since it is in use, the second launch
dies. But the pid file now contains an invalid pid, which means that the
first launch can only be killed using the kill command.

Since the pid file is deleted upon a successful shutdown, why does the
startup script not check for the existence of the pid file as a check to
see if it is safe to start? 

I realize that this is a strange situation, but it seems to me that if
there is a possibility for someone to cause problems, it's only a matter
of time before they do.

David London




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to