java/src/org/openantivirus/daemon ScannerDaemon.java,1.6,1.7

Kurt Huwig <[email protected]> Mon, 31 May 2004 10:18:47 +0000
Newsgroups gmane.comp.security.virus.openantivirus.cvs
Message-ID <[email protected]>
Update of /cvsroot/openantivirus/java/src/org/openantivirus/daemon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv903/src/org/openantivirus/daemon

Modified Files:
	ScannerDaemon.java 
Log Message:
RequestHandler-Thread is given a name

Index: ScannerDaemon.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/daemon/ScannerDaemon.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ScannerDaemon.java	30 May 2004 00:59:55 -0000	1.6
+++ ScannerDaemon.java	31 May 2004 10:18:44 -0000	1.7
@@ -85,10 +85,12 @@
         isRunning = true;
         while (isRunning) {
             try {
-                new Thread(new RequestHandler(
+                final Thread handler = new Thread(new RequestHandler(
                         serverSocket.accept(),
                         engine,
-                        scanConf)).start();
+                        scanConf));
+                handler.setName("RequestHandler");
+                handler.start();
             } catch(IOException ioe) {
                 ioe.printStackTrace();
             }



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click