* src/tail.c (tail_forever_inotify): The fractional
part of the delay was 1000 times too large.
* tests/tail-2/pid: Add a test to ensure the
timeout happens for this case.
FD_SET (wd, &rfd);
select_timeout.tv_sec = (time_t) sleep_interval;
- select_timeout.tv_usec = 1000000000 * (sleep_interval
+ select_timeout.tv_usec = 1000000 * (sleep_interval
- select_timeout.tv_sec);
n_descriptors = select (wd + 1, &rfd, NULL, NULL, &select_timeout);
getlimits_
tail --pid=$INT_MAX -f /dev/null || fail=1
+# Ensure fractional sleep parameter is honored with --pid
+timeout 1 tail -s.1 -f /dev/null --pid=$PID_T_MAX
+test $? = 124 && fail=1
+
Exit $fail