RFC: Netx - Implement SingeInstanceService
omajid at redhat.com
Wed Jun 24 11:23:18 PDT 2009
Deepak Bhole wrote:
> * Omair Majid <omajid at redhat.com> [2009-06-23 10:28]:
>> Updated patch attached.
> One very minor nitpick:
> In SingleInstanceLock::getPort(), if an exception occurs, port is set to
> Integer.MIN_VALUE. It should probably be set to INVALID_PORT, since such
> a variable has already been defined and is used in comparison elsewhere.
> Other than that, looks good to me!
Fixed. Ok to commit?
2009-06-24 Omair Majid <omajid at redhat.com>
(launchApplication): Check for any existing single instance.
Dont start a second instance.
Added USER, TMP_DIR, and changed LOCKS_DIR
(getSingleInstanceService): New function.
(checkExistingSingleInstance): New function.
SingleInstanceService to serviceNames. Create a new instance of
XSingleInstanceService as a privileged proxy.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 24734 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090624/04ac6cf8/netx-single-instance.patch
More information about the distro-pkg-dev