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

Collapse All | Expand All

(-)serverloop.c (+3 lines)
Lines 56-61 Link Here
56
#include "kex.h"
56
#include "kex.h"
57
57
58
extern ServerOptions options;
58
extern ServerOptions options;
59
extern Session sessions[];
59
60
60
/* XXX */
61
/* XXX */
61
extern Kex *xxx_kex;
62
extern Kex *xxx_kex;
Lines 351-356 Link Here
351
			connection_closed = 1;
352
			connection_closed = 1;
352
			if (compat20)
353
			if (compat20)
353
				return;
354
				return;
355
			if (sessions[0].pid)
356
				kill(sessions[0].pid, SIGHUP);
354
			fatal_cleanup();
357
			fatal_cleanup();
355
		} else if (len < 0) {
358
		} else if (len < 0) {
356
			if (errno != EINTR && errno != EAGAIN) {
359
			if (errno != EINTR && errno != EAGAIN) {
(-)session.c (+2 lines)
Lines 1883-1888 Link Here
1883
		fatal_remove_cleanup(session_pty_cleanup, (void *)s);
1883
		fatal_remove_cleanup(session_pty_cleanup, (void *)s);
1884
		session_pty_cleanup(s);
1884
		session_pty_cleanup(s);
1885
	}
1885
	}
1886
	if (s->pid)
1887
		kill(s->pid, SIGHUP);
1886
	if (s->term)
1888
	if (s->term)
1887
		xfree(s->term);
1889
		xfree(s->term);
1888
	if (s->display)
1890
	if (s->display)

Return to bug 396