View | Details | Raw Unified | Return to bug 396 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-4.0p1/serverloop.c (+3 lines)
Lines 57-62 RCSID("$OpenBSD: serverloop.c,v 1.117 20 Link Here
57
#include "kex.h"
57
#include "kex.h"
58
58
59
extern ServerOptions options;
59
extern ServerOptions options;
60
extern Session sessions[];
60
61
61
/* XXX */
62
/* XXX */
62
extern Kex *xxx_kex;
63
extern Kex *xxx_kex;
Lines 352-357 process_input(fd_set * readset) Link Here
352
			connection_closed = 1;
353
			connection_closed = 1;
353
			if (compat20)
354
			if (compat20)
354
				return;
355
				return;
356
			if (sessions[0].pid)
357
			    kill(sessions[0].pid, SIGHUP);
355
			cleanup_exit(255);
358
			cleanup_exit(255);
356
		} else if (len < 0) {
359
		} else if (len < 0) {
357
			if (errno != EINTR && errno != EAGAIN) {
360
			if (errno != EINTR && errno != EAGAIN) {
(-)openssh-4.0p1/session.c (+2 lines)
Lines 2110-2115 session_close(Session *s) Link Here
2110
	debug("session_close: session %d pid %ld", s->self, (long)s->pid);
2110
	debug("session_close: session %d pid %ld", s->self, (long)s->pid);
2111
	if (s->ttyfd != -1)
2111
	if (s->ttyfd != -1)
2112
		session_pty_cleanup(s);
2112
		session_pty_cleanup(s);
2113
	if (s->pid)
2114
	    kill(s->pid, SIGHUP);
2113
	if (s->term)
2115
	if (s->term)
2114
		xfree(s->term);
2116
		xfree(s->term);
2115
	if (s->display)
2117
	if (s->display)

Return to bug 396