View | Details | Raw Unified | Return to bug 3181
Collapse All | Expand All

(-)a/ssh-agent.c (+10 lines)
Lines 1247-1252 check_parent_exists(void) Link Here
1247
		cleanup_socket();
1247
		cleanup_socket();
1248
		_exit(2);
1248
		_exit(2);
1249
	}
1249
	}
1250
#ifdef HAVE_CYGWIN
1251
	/*
1252
	 * On Cygwin we won't get reparented, so also test with a no-op signal.
1253
	 * This is vulnerable to pid reuse, so only enabled where necessary.
1254
	 */
1255
	if (kill(parent_pid, 0) != 0) {
1256
		cleanup_socket();
1257
		_exit(2);
1258
	}
1259
#endif
1250
}
1260
}
1251
1261
1252
static void
1262
static void

Return to bug 3181