From: David Hill Date: Sun, 15 Jul 2012 06:41:30 +0000 (-0400) Subject: undo if 0 the select code. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=41a11496e3368c7cccbb6d037779cd285c1e4be1;p=spectrwm.git undo if 0 the select code. --- diff --git a/spectrwm.c b/spectrwm.c index 15187b3..684eebc 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -7646,10 +7646,8 @@ main(int argc, char *argv[]) int xfd, i, num_screens; struct sigaction sact; xcb_generic_event_t *evt; -#if 0 struct timeval tv; fd_set rd; -#endif time_started = time(NULL); @@ -7818,7 +7816,6 @@ noconfig: continue; } -#if 0 FD_ZERO(&rd); FD_SET(xfd, &rd); tv.tv_sec = 1; @@ -7826,7 +7823,6 @@ noconfig: if (select(xfd + 1, &rd, NULL, NULL, &tv) == -1) if (errno != EINTR) DNPRINTF(SWM_D_MISC, "select failed"); -#endif if (restart_wm == 1) restart(NULL, NULL); if (search_resp == 1)