On Monday, 18 August 2014 at 15:12:58 UTC, Etienne wrote:
Shouldn't you be starting with rt_init() in ServiceMain?
The runtime should be already initialized before main() is run, however, now that you mention it, I think ServiceMain should call thread_attachThis(). I see there is a commented-out line in the code to do this already.