Log when a shutdown is initiated by someone pressing ctrl-C (or sending
the process the same signal another way). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3263 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PresentsServer.java,v 1.42 2004/08/27 02:20:23 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -168,6 +168,7 @@ public class PresentsServer
|
|||||||
public boolean signalReceived (int signo)
|
public boolean signalReceived (int signo)
|
||||||
{
|
{
|
||||||
// this is called when we receive a ctrl-c
|
// this is called when we receive a ctrl-c
|
||||||
|
Log.info("Shutdown initiated by received signal (" + signo + ")");
|
||||||
queueShutdown();
|
queueShutdown();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user