The ppoll replacement example gets the timeout argument wrong. Fix that. -Andi --- man-pages-3.23/man2/poll.2 2009-09-30 03:36:44.000000000 +0200 +++ man-pages-3.23-hacked/man2/poll.2 2009-12-27 01:36:31.000000000 +0100 @@ -27,6 +27,7 @@ .\" 2006-03-13, mtk, Added ppoll() + various other rewordings .\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and .\" formatting changes. +.\" 2009-12, ak, Fix ppoll example. .\" .TH POLL 2 2009-09-15 "Linux" "Linux Programmer's Manual" .SH NAME @@ -202,9 +203,10 @@ .nf sigset_t origmask; + struct timespec ts = { .tv_sec = timeout }; sigprocmask(SIG_SETMASK, &sigmask, &origmask); - ready = poll(&fds, nfds, timeout); + ready = poll(&fds, nfds, timeout >= 0 ? &ts : NULL); sigprocmask(SIG_SETMASK, &origmask, NULL); .fi .PP -- ak@xxxxxxxxxxxxxxx -- Speaking for myself only. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html