first... THANX...

It works for me, but 'tv.tv_sec' seams to be in miliseconds not in seconds. If i put 5000 i got a 5 sec. timeout.