connection dies when X11 forwarded app exists

Jim Simmons simmonsjw-openssh at sws6.cind.ornl.gov
Thu Jun 29 00:04:50 EST 2000


I'm seeing something similar using Openssh-2.1.1p1 with Solaris 2.6.  Except
when I connect using ssh -v it doesn't always kill the session.  A sample:

	ssh -X remotehost
	   xmgrace			# On remote host
					# Exit xmgrace and I get:

	channel 0: chan_shutdown_read: shutdown() failed for fd6 [i1 o128]:
		 Invalid argument

However:

	ssh -X -v remotehost
	xmgrace
					# Exit xmgrace and I get:
	debug: channel 0: send oclose
	debug: channel 0: close_write
	debug: channel 0: send data len 512
	debug: channel 0: read<=0 rfd 6 len 0
	debug: channel 0: read failed
	debug: channel 0: input open -> drain
	debug: channel 0: close_read
	channel 0: chan_shutdown_read: shutdown() failed for fd6 [i1 o128]:
		 Invalid argument
	debug: channel 0: send data len 512
	debug: channel 0: send data len 576
	Connection to remotehost closed by remote host.
	Connection to remotehost closed.
	debug: Transferred: stdin 20, stdout 2916, stderr 71 bytes in 27.8 seconds
	debug: Bytes per second: stdin 0.7, stdout 104.9, stderr 2.6
	debug: Exit status -1

In this case it killed the connection.  I tried again and this time it
didn't kill it, saying:

	debug: channel 0: input: no drain shortcut
	debug: channel 0: ibuf empty
	debug: channel 0: input drain -> wait_oclose
	debug: channel 0: send ieof
	debug: channel 0: rcvd oclose
	debug: channel 0: input wait_oclose -> closed
	debug: channel 0: full closed
	debug: channel_free: channel 0: status: The following connections are open:
	  #0 X11 connection from remotehost port 34006 (t4 r1 i8/0 o128/0
		 fd 6/6)

Any idea what is going on?

Jim





More information about the openssh-unix-dev mailing list