commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1003763 - /commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c
Date Sat, 02 Oct 2010 10:16:17 GMT
Author: mturk
Date: Sat Oct  2 10:16:16 2010
New Revision: 1003763

URL: http://svn.apache.org/viewvc?rev=1003763&view=rev
Log:
Log if we are running 32 or 64-bit version

Modified:
    commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c

Modified: commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c?rev=1003763&r1=1003762&r2=1003763&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/apps/prunsrv/prunsrv.c Sat Oct  2 10:16:16
2010
@@ -43,8 +43,10 @@
 
 #ifdef WIN64
 #define KREG_WOW6432  KEY_WOW64_32KEY
+#define PRG_BITS      64
 #else
 #define KREG_WOW6432  0
+#define PRG_BITS      32
 #endif
 
 typedef struct APX_STDWRAP {
@@ -824,13 +826,13 @@ static DWORD WINAPI serviceStop(LPVOID l
         gSargs.dwMs             = SO_JVMMS;
         gSargs.dwMx             = SO_JVMMX;
         gSargs.dwSs             = SO_JVMSS;
-        gSargs.bJniVfprintf     = SO_JNIVFPRINTF;        
+        gSargs.bJniVfprintf     = SO_JNIVFPRINTF;
         gSargs.szClassName      = _jni_sclass;
         gSargs.szMethodName     = _jni_smethod;
         gSargs.lpArguments      = _jni_sparam;
         gSargs.szStdErrFilename = NULL;
         gSargs.szStdOutFilename = NULL;
-        
+
         /* Create sutdown event */
         gShutdownEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
         if (!apxJavaStart(&gSargs)) {
@@ -1001,7 +1003,7 @@ static DWORD serviceStart()
         gRargs.dwMs             = SO_JVMMS;
         gRargs.dwMx             = SO_JVMMX;
         gRargs.dwSs             = SO_JVMSS;
-        gRargs.bJniVfprintf     = SO_JNIVFPRINTF;        
+        gRargs.bJniVfprintf     = SO_JNIVFPRINTF;
         gRargs.szClassName      = _jni_rclass;
         gRargs.szMethodName     = _jni_rmethod;
         gRargs.lpArguments      = _jni_rparam;
@@ -1433,7 +1435,8 @@ void __cdecl main(int argc, char **argv)
     apxLogOpen(gPool, SO_LOGPATH, SO_LOGPREFIX);
     apxLogLevelSetW(NULL, SO_LOGLEVEL);
     apxLogWrite(APXLOG_MARK_DEBUG "Commons Daemon procrun log initialized");
-    apxLogWrite(APXLOG_MARK_INFO "Commons Daemon procrun (%s) started", PRG_VERSION);
+    apxLogWrite(APXLOG_MARK_INFO "Commons Daemon procrun (%s %d-bit) started",
+                PRG_VERSION, PRG_BITS);
 
     AplZeroMemory(&gStdwrap, sizeof(APX_STDWRAP));
 



Mime
View raw message