Index: /trunk/psLib/src/sys/psLogMsg.c
===================================================================
--- /trunk/psLib/src/sys/psLogMsg.c	(revision 7586)
+++ /trunk/psLib/src/sys/psLogMsg.c	(revision 7587)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-15 00:17:32 $
+ *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-16 23:01:10 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -186,7 +186,9 @@
     // Special destinations: stdout, stderr
     if (strcmp(dest, "stdout") == 0) {
+        logFD = STDOUT_FILENO;
         return STDOUT_FILENO;
     }
     if (strcmp(dest, "stderr") == 0) {
+        logFD = STDERR_FILENO;
         return STDERR_FILENO;
     }
@@ -213,4 +215,5 @@
         }
         psFree(protocolLocation);
+        logFD = fileD;
         return fileD;
     }
Index: /trunk/psLib/src/sys/psLogMsg.h
===================================================================
--- /trunk/psLib/src/sys/psLogMsg.h	(revision 7586)
+++ /trunk/psLib/src/sys/psLogMsg.h	(revision 7587)
@@ -11,6 +11,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-09-20 02:43:53 $
+ *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-06-16 23:01:10 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -27,6 +27,7 @@
 
 /** This procedure sets the destination for future log messages.
- *  This procedure will take a character string as an
- *  argument which can specify general log destinations.
+ *
+ *  This procedure will take an integer as an argument
+ *  which can specify general log destinations.
  *
  *  @return bool     true if set successfully, otherwise false.
@@ -76,5 +77,4 @@
 /** This procedures uses a string to set the destination for which to send
  *  the corresponding log messages.
- *
  *
  *  @return int:        The file descriptor location of the message.
Index: /trunk/psLib/test/sys/tst_psLogMsg.c
===================================================================
--- /trunk/psLib/test/sys/tst_psLogMsg.c	(revision 7586)
+++ /trunk/psLib/test/sys/tst_psLogMsg.c	(revision 7587)
@@ -234,6 +234,6 @@
     close(fd);
 
-    int fd2 = creat("/eva/log.txt", 0666);
-    printf("--------------- psLogSetDestination(""file:/eva/log.txt"") ----------\n");
+    int fd2 = creat("eva/log.txt", 0666);
+    printf("--------------- psLogSetDestination(""file:eva/log.txt"") ----------\n");
     //    psLogSetDestination("file:/eva/log.txt");
     psLogSetDestination(fd2);
@@ -261,15 +261,15 @@
 
     printf("------------- psMessageDestination(PS_LOG_TO_STDERR) -------------\n");
-    psMessageDestination("dest:stderr");
+    psMessageDestination("stderr");
     //    psLogSetDestination(2);
     for (i=0;i<10;i++) {
-        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
+        psLogMsg(__func__, i, "Hello World!  My level is %d - stderr\n", i);
     }
 
     printf("------------- psMessageDestination(PS_LOG_TO_STDOUT) -------------\n");
-    psMessageDestination("dest:stdout");
+    psMessageDestination("stdout");
     //    psLogSetDestination(1);
     for (i=0;i<10;i++) {
-        psLogMsg(__func__, i, "Hello World!  My level is %d\n", i);
+        psLogMsg(__func__, i, "Hello World!  My level is %d - stdout\n", i);
     }
 
@@ -296,7 +296,7 @@
     close(fd);
 
-    int fd2 = creat("/eva/log2.txt", 0666);
-    printf("--------------- psMessageDestination(""file:/eva/log.txt"") ----------\n");
-    psMessageDestination("file:/eva/log2.txt");
+    int fd2 = creat("eva/log2.txt", 0666);
+    printf("--------------- psMessageDestination(""file:eva/log.txt"") ----------\n");
+    psMessageDestination("file:eva/log2.txt");
     //    psLogSetDestination(fd2);
     for ( i=0;i<10;i++) {
Index: /trunk/psLib/test/sys/verified/tst_psLogMsg.stderr
===================================================================
--- /trunk/psLib/test/sys/verified/tst_psLogMsg.stderr	(revision 7586)
+++ /trunk/psLib/test/sys/verified/tst_psLogMsg.stderr	(revision 7587)
@@ -200,19 +200,11 @@
     Hello World!  My level is 3
 <DATE><TIME>|<HOST>|A|testLogMsg06
-    Hello World!  My level is 0
+    Hello World!  My level is 0 - stderr
 <DATE><TIME>|<HOST>|E|testLogMsg06
-    Hello World!  My level is 1
+    Hello World!  My level is 1 - stderr
 <DATE><TIME>|<HOST>|W|testLogMsg06
-    Hello World!  My level is 2
+    Hello World!  My level is 2 - stderr
 <DATE><TIME>|<HOST>|I|testLogMsg06
-    Hello World!  My level is 3
-<DATE><TIME>|<HOST>|A|testLogMsg06
-    Hello World! My level is 0
-<DATE><TIME>|<HOST>|E|testLogMsg06
-    Hello World! My level is 1
-<DATE><TIME>|<HOST>|W|testLogMsg06
-    Hello World! My level is 2
-<DATE><TIME>|<HOST>|I|testLogMsg06
-    Hello World! My level is 3
+    Hello World!  My level is 3 - stderr
 
 ---> TESTPOINT PASSED (psLogMsg{psMessageDestination()} | tst_psLogMsg.c)
Index: /trunk/psLib/test/sys/verified/tst_psLogMsg.stdout
===================================================================
--- /trunk/psLib/test/sys/verified/tst_psLogMsg.stdout	(revision 7586)
+++ /trunk/psLib/test/sys/verified/tst_psLogMsg.stdout	(revision 7587)
@@ -1,2 +1,4 @@
+<DATE><TIME>|<HOST>|A|testLogMsg05
+    Hello World!  My level is 0
 --------------- psLogSetDestination(PS_LOG_NONE) ----------------
     File Descriptor = 0 
@@ -5,6 +7,4 @@
 ------------- psLogSetDestination(PS_LOG_TO_STDOUT) -------------
     File Descriptor = 1 
-<DATE><TIME>|<HOST>|A|testLogMsg05
-    Hello World!  My level is 0
 <DATE><TIME>|<HOST>|E|testLogMsg05
     Hello World!  My level is 1
@@ -24,16 +24,16 @@
 <DATE><TIME>|<HOST>|I|testLogMsg05
     Hello World!  My level is 3
---------------- psLogSetDestination(file:/eva/log.txt) ----------
+--------------- psLogSetDestination(file:eva/log.txt) ----------
+<DATE><TIME>|<HOST>|A|testLogMsg06
+    Hello World!  My level is 0 - stdout
 --------------- psMessageDestination(PS_LOG_NONE) ----------------
 ------------- psMessageDestination(PS_LOG_TO_STDERR) -------------
 ------------- psMessageDestination(PS_LOG_TO_STDOUT) -------------
-<DATE><TIME>|<HOST>|A|testLogMsg06
-    Hello World!  My level is 0
 <DATE><TIME>|<HOST>|E|testLogMsg06
-    Hello World!  My level is 1
+    Hello World!  My level is 1 - stdout
 <DATE><TIME>|<HOST>|W|testLogMsg06
-    Hello World!  My level is 2
+    Hello World!  My level is 2 - stdout
 <DATE><TIME>|<HOST>|I|testLogMsg06
-    Hello World!  My level is 3
+    Hello World!  My level is 3 - stdout
 --------------- psMessageDestination(file:log2.txt) ---------------
 --------------------- The Contents of log2.txt -------------------
@@ -46,3 +46,3 @@
 <DATE><TIME>|<HOST>|I|testLogMsg06
     Hello World!  My level is 3
---------------- psMessageDestination(file:/eva/log.txt) ----------
+--------------- psMessageDestination(file:eva/log.txt) ----------
