I seem to be having a problem with sleep() hanging. I've tried a minimal simple C program (I'm using Netbeans 8.2, remotely compiling on the PI via GCC etc...) with just a few lines in it.
Am I missing something obvious (I assume sleep() uses SIGALRM, which i further assume is enabled by default in a minimal C program).
It hangs under debugging, or direct execution. Everything is running as root.