sys_poll_intr: fix timeout arithmetic
commit9449ff4b9605aafbc3ff7cac02b1cd511cbcbec1
authorDaniel Kobras <d.kobras@science-computing.de>
Mon, 21 Jul 2014 08:47:53 +0000 (21 10:47 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 7 Aug 2014 14:43:09 +0000 (7 16:43 +0200)
treea76514efc451a88036c1fffc17f1978f3edcb24f
parenta2a4d0b6f2e3eff4e537fced6416e50fc0d4993f
sys_poll_intr: fix timeout arithmetic

Callers of sys_poll_intr() assume timeout to be in milliseconds like
poll(2) expects, but implementation used nanosecond units. Also make
sure timeout doesn't become infinite by mistake during time arithmetic.

Signed-off-by: Daniel Kobras <d.kobras@science-computing.de>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10731

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jul 22 00:12:24 CEST 2014 on sn-devel-104
lib/util/select.c