I have modified one of the sample applications using event handlers to write digital input changes to file. When I run the program manually it works fine, however if I try running it in the background (i.e. uploading the application through the web interface and running it as a daemon) it runs then closes straight away.
It seems that the application gets to getchar() and stops.
Is getchar() not the right approach when trying to run the application in the background?