ofSystem() 009 on Raspberry Pi Error

Hi community,

Just wanted to report this error. I recently started using ofSystem() to shutdown my Pi when I’m finished using my project (it’s an audio/visual system). I do: “ofSystem(“sudo halt”);” It works most of the time, but some times oF returns (paraphrasing): “ofSystem: Error opening return file.” Some times after a restart of the application it works, some times not.

I have not yet tested this on desktop, only because my project is for the Pi.