> waitfunc gets called every wait cycle, can be used for outputting/ > logging something. in general, sleep() can/is interrupted by signals, so waitfunc() gets called at each interrupt - not sure if that is expected behavior?