IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7587 for trunk/psLib/src/sys


Ignore:
Timestamp:
Jun 16, 2006, 1:01:10 PM (20 years ago)
Author:
drobbin
Message:

Edited psMessageDestination to correctly set logFD. Updated tests - removed dest from "dest:stdout". (Code no longer requires "dest")

Location:
trunk/psLib/src/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r7569 r7587  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-06-15 00:17:32 $
     13 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-16 23:01:10 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    186186    // Special destinations: stdout, stderr
    187187    if (strcmp(dest, "stdout") == 0) {
     188        logFD = STDOUT_FILENO;
    188189        return STDOUT_FILENO;
    189190    }
    190191    if (strcmp(dest, "stderr") == 0) {
     192        logFD = STDERR_FILENO;
    191193        return STDERR_FILENO;
    192194    }
     
    213215        }
    214216        psFree(protocolLocation);
     217        logFD = fileD;
    215218        return fileD;
    216219    }
  • trunk/psLib/src/sys/psLogMsg.h

    r5072 r7587  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-20 02:43:53 $
     13 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-06-16 23:01:10 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727
    2828/** This procedure sets the destination for future log messages.
    29  *  This procedure will take a character string as an
    30  *  argument which can specify general log destinations.
     29 *
     30 *  This procedure will take an integer as an argument
     31 *  which can specify general log destinations.
    3132 *
    3233 *  @return bool     true if set successfully, otherwise false.
     
    7677/** This procedures uses a string to set the destination for which to send
    7778 *  the corresponding log messages.
    78  *
    7979 *
    8080 *  @return int:        The file descriptor location of the message.
Note: See TracChangeset for help on using the changeset viewer.