From d89a9e4e1d08a026db7b74482391f4912e04cd84 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sat, 10 Mar 2018 06:27:21 +0100 Subject: [PATCH] poll.c: remove special INFTIM handling On Linux, poll syscall interprets any negative timeout value as an infinite timeout, so no need to handle BSD-specific INFTIM. * poll.c (SYS_FUNC(poll)): Remove INFTIM handling. --- poll.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/poll.c b/poll.c index 6939e3e9..da42388f 100644 --- a/poll.c +++ b/poll.c @@ -156,14 +156,7 @@ SYS_FUNC(poll) { if (entering(tcp)) { decode_poll_entering(tcp); - int timeout = tcp->u_arg[2]; - -#ifdef INFTIM - if (INFTIM == timeout) - tprints("INFTIM"); - else -#endif - tprintf("%d", timeout); + tprintf("%d", (int) tcp->u_arg[2]); return 0; } else {