|
From: Julian S. <js...@ac...> - 2002-12-06 20:19:25
|
Hmm, I tried the following, of course linked with libpthread and it works
perfectly. so no easy leads there :-(
J
#include <sys/poll.h>
#include <stdio.h>
int main ( void )
{
int fd;
struct pollfd tab[1];
fd = fileno(stdin);
tab[0].fd = fd;
tab[0].events = POLLIN;
printf("poll begins ... press return\n" );
poll( tab, 1, -1 );
printf("done\n");
return 0;
}
|