summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2017-09-21 21:46:01 +0200
committerShuah Khan <shuahkh@osg.samsung.com>2017-09-25 18:09:06 +0200
commit01db7fbf5487505b887fbd6a03c51f2adc952196 (patch)
treedecd8fa909f501187912abaf052566f747ba46f6 /COPYING
parentselftests/memfd: correct run_tests.sh permission (diff)
downloadlinux-01db7fbf5487505b887fbd6a03c51f2adc952196.tar.xz
linux-01db7fbf5487505b887fbd6a03c51f2adc952196.zip
selftests: timers: set-timer-lat: fix hang when std out/err are redirected
do_timer_oneshot() uses select() as a timer with FD_SETSIZE and readfs is cleared with FD_ZERO without FD_SET. When stdout and stderr are redirected, the test hangs in select forever. Fix the problem calling select() with readfds empty and nfds zero. This is sufficient for using select() for timer. With this fix "./set-timer-lat > /dev/null 2>&1" no longer hangs. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Acked-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions