From 887f19e8a10c44ad82ac30d2d7cbe4be6166a8a1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 3 Feb 2016 14:16:00 +0100 Subject: [PATCH] select.2: ffix Signed-off-by: Michael Kerrisk --- man2/select.2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man2/select.2 b/man2/select.2 index 1ef47cc90..2d93312cd 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -599,10 +599,12 @@ main(void) int retval; /* Watch stdin (fd 0) to see when it has input. */ + FD_ZERO(&rfds); FD_SET(0, &rfds); /* Wait up to five seconds. */ + tv.tv_sec = 5; tv.tv_usec = 0;