[5824] in Athena Bugs

home help back first fref pref prev next nref lref last post

zephyr bugs/changes pmax/ultrix

daemon@ATHENA.MIT.EDU (John T Kohl)
Fri Aug 24 10:55:01 1990

Date: Fri, 24 Aug 90 10:54:44 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

(ticket file needs to be set before doing ZInitialize, since it caches
the principal name)
*** /tmp/,RCSt1008367	Fri Aug 24 10:51:21 1990
--- clients/zshutdown_notify/zshutdown_notify.c	Thu Aug  2 22:37:33 1990
***************
*** 67,77 ****
      msg[1] = message;
      msg[2] = warning;
  
-     if ((retval = ZInitialize()) != ZERR_NONE) {
- 	com_err(argv[0], retval, "while initializing");
- 	exit(1);
-     } 
- 
      if (gethostname(hostname, MAXHOSTNAMELEN) < 0) {
  	com_err(argv[0], errno, "while finding hostname");
  	exit(1);
--- 67,72 ----
***************
*** 104,109 ****
--- 99,109 ----
  	exit(1);
      }
  #endif
+ 
+     if ((retval = ZInitialize()) != ZERR_NONE) {
+ 	com_err(argv[0], retval, "while initializing");
+ 	exit(1);
+     } 
  
      ptr = message;
  
*** /tmp/,RCSt1008384	Fri Aug 24 10:52:24 1990
--- zwgc/Imakefile	Wed Aug  1 22:45:07 1990
***************
*** 63,69 ****
  ZWGCDESC=$(ACLDIR)/zwgc.desc
  APPDEF=$(ACLDIR)/zwgc_resources
  
! DEFINES=-DREVSTACK -DDEFDESC=\"$(ZWGCDESC)\" -DAPPDEFDATABASE=\"$(APPDEF)\"
  
  normal_obj_rule()
  
--- 63,69 ----
  ZWGCDESC=$(ACLDIR)/zwgc.desc
  APPDEF=$(ACLDIR)/zwgc_resources
  
! DEFINES=-DREVSTACK -DDEFDESC=\"$(ZWGCDESC)\" -DAPPDEFDATABASE=\"$(APPDEF)\" -DZWGCPATH=\"$(USRETCDIR)/zwgc\"
  
  normal_obj_rule()
  
*** /tmp/,RCSt1008395	Fri Aug 24 10:52:48 1990
--- zwgc/standard_ports.c	Wed Aug  1 23:24:17 1990
***************
*** 31,36 ****
--- 31,40 ----
  #include "error.h"
  #include <zephyr/zephyr.h>
  
+ #ifndef ZWGCPATH
+ #define ZWGCPATH "/usr/etc/zwgc"
+ #endif
+ 
  extern string tty_filter();
  extern char *X_driver();
  
***************
*** 272,283 ****
  	    var_set_variable("output_driver", p->port_name);
  	else { /* no suitable default has been found */
  	    if (fallback == -1)		/* complain, since indeterminate */
! 		ERROR(
  "\7\7\7There is no X display available, so zwgc cannot run.\n\
  THIS MEANS THAT YOU WILL NOT RECEIVE ANY ZEPHYR MESSAGES.\n\
  If you wish to receive Zephyr messages, you should start zwgc\n\
! with the -ttymode option (type '/usr/etc/zwgc -ttymode').\n\
! Read the zwgc(1) manual page for details on the fallback variable.\n\n");
  	    exit(1);
  	}
      } else
--- 276,288 ----
  	    var_set_variable("output_driver", p->port_name);
  	else { /* no suitable default has been found */
  	    if (fallback == -1)		/* complain, since indeterminate */
! 		ERROR2(
  "\7\7\7There is no X display available, so zwgc cannot run.\n\
  THIS MEANS THAT YOU WILL NOT RECEIVE ANY ZEPHYR MESSAGES.\n\
  If you wish to receive Zephyr messages, you should start zwgc\n\
! with the -ttymode option (type '%s -ttymode').\n\
! Read the zwgc(1) manual page for details on the fallback variable.\n\n",
! 		       ZWGCPATH);
  	    exit(1);
  	}
      } else

home help back first fref pref prev next nref lref last post