Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: HLOSRVR3

HLOSRVR3.m

Go to the documentation of this file.
  1. HLOSRVR3 ;IRMFO/OAK/CJM - Reading messages, sending acks;03/24/2004 14:43 ;08/16/2011
  1. ;;1.6;HEALTH LEVEL SEVEN;**138,147,157**;Oct 13, 1995;Build 8
  1. ;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ERROR ;error trap
  1. ;
  1. S $ETRAP="Q:$QUIT """" Q"
  1. D END^HLOSRVR
  1. ;
  1. I ($ECODE["TOOMANYFILES")!($ECODE["EDITED") Q:$QUIT "" Q
  1. ;
  1. ;multi-listener should stop execution, only a single server may continue
  1. I $P($G(HLCSTATE("LINK","SERVER")),"^",2)'="S" D Q:$QUIT "" Q
  1. .;don't log these errors unless logging is turned on
  1. .I $G(^HLTMP("LOG ALL ERRORS")) D ^%ZTER Q
  1. .I ($ECODE["READ")!($ECODE["NOTOPEN")!($ECODE["DEVNOTOPN")!($ECODE["WRITE")!($ECODE["OPENERR")!($ECODE["DSCON") Q
  1. .D ^%ZTER
  1. .Q
  1. ;
  1. ;single listener should return to the process manager
  1. Q:$Q "" Q