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

Collapse All | Expand All

(-)session.c (+5 lines)
Lines 407-412 do_exec_no_pty(Session *s, const char *c Link Here
407
		if (setsid() < 0)
407
		if (setsid() < 0)
408
			error("setsid failed: %.100s", strerror(errno));
408
			error("setsid failed: %.100s", strerror(errno));
409
409
410
		/*
411
		 * Clear child's environment
412
		 */
413
		environ[0] = NULL;
414
410
#ifdef USE_PIPES
415
#ifdef USE_PIPES
411
		/*
416
		/*
412
		 * Redirect stdin.  We close the parent side of the socket
417
		 * Redirect stdin.  We close the parent side of the socket

Return to bug 757