[2860] in Release_Engineering

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

moira coredump fix

daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Fri Jun 5 12:46:46 1992

Date: Fri, 5 Jun 92 12:46:35 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: rel-eng@MIT.EDU

This isn't really important; your call if it gets added or not.  It
fixes the coredump by any moira client started on a decstation while
the moira server is down.  If you take the fix, all of the moira
clients should be recompiled.
					-Mark

*** /source/athena/athena.lib/moira/gdb/gdb_conn.c	Tue Sep 13 14:26:20 1988
--- /mit/moiradev/src/gdb/gdb_conn.c	Wed Aug 21 10:44:10 1991
***************
*** 793,801 ****
         /*
          * Remove the file descriptor from the select bit maps
          */
! 	if (!(con->in.flags & HCON_UNUSED))
  		FD_CLR(con->in.fd,  &gdb_crfds);
! 	if (!(con->out.flags & HCON_UNUSED))
  		FD_CLR(con->out.fd, &gdb_cwfds);
         /*
          * Close the file descriptor.  Note, this presumes that in fact
--- 793,801 ----
         /*
          * Remove the file descriptor from the select bit maps
          */
! 	if (!(con->in.flags & HCON_UNUSED) && con->in.fd >= 0)
  		FD_CLR(con->in.fd,  &gdb_crfds);
! 	if (!(con->out.flags & HCON_UNUSED) && con->out.fd >= 0)
  		FD_CLR(con->out.fd, &gdb_cwfds);
         /*
          * Close the file descriptor.  Note, this presumes that in fact


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