Well if it hangs, then debug it directly. Presumably it's trying to read from something (a socket or a pipe or ...), and that something isn't producing any data. So it waits forever. Run strace or sysdig or something. It'll tell you exactly what is happening.