Fix for bash loadable builtins 'sleep' execution failure issue The rootcause of the failure was found with select() execution with time information in fsleep() function in lib/sh/ufunc.c file. The fix patch content resolves the issue. Test logs (After applying patch) ========= # date; sleep 1 & date; sleep 10; date Mon Nov 27 17:25:31 IST 2017 [1] 13173 Mon Nov 27 17:25:31 IST 2017 Mon Nov 27 17:25:41 IST 2017 -----> Took 10 Sec's sleep [1]+ Done sleep 1 # Signed-off-by: Thiruvadi Rajaraman Index: bash-4.4-rc1/lib/sh/ufuncs.c =================================================================== --- bash-4.4-rc1.orig/lib/sh/ufuncs.c 2017-11-27 13:57:18.172796871 +0530 +++ bash-4.4-rc1/lib/sh/ufuncs.c 2017-11-27 17:21:13.622624417 +0530 @@ -90,11 +90,16 @@ unsigned int sec, usec; { struct timeval tv; + int ret = 0; tv.tv_sec = sec; tv.tv_usec = usec; - return select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv); + do { + ret = select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv); + } while ( (ret == -1)); + + return ret; } #else /* !HAVE_TIMEVAL || !HAVE_SELECT */ int