Revision eefd95e1f3d47b90dc768e9ebc77d390c4f34809 authored by Shuah Khan on 21 September 2017, 19:05:18 UTC, committed by Shuah Khan on 25 September 2017, 16:09:07 UTC
When timer_create() fails on a bootime or realtime clock, setup_timer()
returns 0 as if timer has been set. Callers wait forever for the timer
to expire.

This hang is seen on a system that doesn't have support for:

CLOCK_REALTIME_ALARM   ABSTIME missing CAP_WAKE_ALARM? : [UNSUPPORTED]

Test hangs waiting for a timer that hasn't been set to expire. Fix
setup_timer() to return 1, add handling in callers to detect the
unsupported case and return 0 without waiting to not fail the test.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
1 parent 01db7fb
History
File Mode Size
Makefile -rw-r--r-- 326 bytes
compat.c -rw-r--r-- 2.2 KB
ipc_sysctl.c -rw-r--r-- 5.4 KB
mq_sysctl.c -rw-r--r-- 2.9 KB
mqueue.c -rw-r--r-- 40.1 KB
msg.c -rw-r--r-- 27.4 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.8 KB
sem.c -rw-r--r-- 58.0 KB
shm.c -rw-r--r-- 38.5 KB
syscall.c -rw-r--r-- 4.3 KB
util.c -rw-r--r-- 21.8 KB
util.h -rw-r--r-- 7.0 KB

back to top