Fix for bash loadable builtin sleep issue The rootcause of the sleep execution failure has found with the SIGCHLD affects the execution of select(). An issue fixed by ignoring the SIGCHLD signal during the select() execution. Signed-off-by: Thiruvadi Rajaraman Index: bash-4.2/lib/sh/ufuncs.c =================================================================== --- bash-4.2.orig/lib/sh/ufuncs.c +++ bash-4.2/lib/sh/ufuncs.c @@ -19,7 +19,7 @@ */ #include "config.h" - +#include #include "bashtypes.h" #if defined (TIME_WITH_SYS_TIME) @@ -86,6 +86,7 @@ fsleep(sec, usec) unsigned int sec, usec; { struct timeval tv; + signal(SIGCHLD, NULL); tv.tv_sec = sec; tv.tv_usec = usec;