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:
parent
85b35818db
commit
d89a9e4e1d
9
poll.c
9
poll.c
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user