Gertboard

Peter Korsten EMAIL HIDDEN
Fri Jan 27 18:55:37 CET 2012


Op 27-1-2012 17:50, Jay Vaughan schreef:

>> Oh-kay... but what's that got to do with the code? Calling system() and forking your process just to send a '0' or '1' to a file means that C isn't your strongest point. I'm not complaining about his other, no doubt great, prowess; I'm complaining about his code.
>
> Where's the fork() .. and calling system() like that is fairly useful, you can easily put more commands in the list if you need to, plus it makes it much easier to debug if for some reason you need to strace.  Thing is, there's nothing wrong with this style of programming for embedded, Peter, you should know that..

The fork() is in the system(), unless things have changed drastically.

- Peter



More information about the music-bar mailing list