OpenBSD needs the same treatment as FreeBSD to avoid xterm -hold

chewing CPU cycles. Reported by Kevin Chadwick.
This commit is contained in:
matthieu 2014-01-18 14:06:23 +00:00
parent dbee37c000
commit 0f866aaf0f

View File

@ -216,7 +216,7 @@ readPtyData(XtermWidget xw, PtySelect * select_mask, PtyData * data)
Panic("input: read returned unexpected error (%d)\n", save_err);
size = 0;
} else if (size == 0) {
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
NormalExit();
#else
Panic("input: read returned zero\n", 0);