Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #1464 (closed)

Opened 15 years ago

Closed 15 years ago

Handle Singal.BREAK on Windows

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.1
Component: Deployment Version: 3.0-M1
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

See ZeroC manual: 35.21.2 Server Deactivation

Change History (2)

comment:1 Changed 15 years ago by jmoore

Useful for testing:

import sun.misc.*;

public class sig {
    public static void main(String[] args) throws Exception {
        final Object obj = new Object();
        synchronized (obj) {
            SignalHandler handler = new SignalHandler() {
                public void handle(Signal sig) {
                    System.out.println(sig);
                    System.exit(0);
                }
            };

            for (String sig : args) {
                Signal.handle(new Signal(sig), handler);
            }

            obj.wait();
        }
    }
}

comment:2 Changed 15 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.63631 sec.)

We're Hiring!