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.
This commit is contained in:
Eugene Syromyatnikov 2018-03-10 06:27:21 +01:00 committed by Dmitry V. Levin
parent 85b35818db
commit d89a9e4e1d

9
poll.c
View File

@ -156,14 +156,7 @@ SYS_FUNC(poll)
{ {
if (entering(tcp)) { if (entering(tcp)) {
decode_poll_entering(tcp); decode_poll_entering(tcp);
int timeout = tcp->u_arg[2]; tprintf("%d", (int) tcp->u_arg[2]);
#ifdef INFTIM
if (INFTIM == timeout)
tprints("INFTIM");
else
#endif
tprintf("%d", timeout);
return 0; return 0;
} else { } else {