tasanakorn/rpi-fbcp — pull request #2 by AndrewFromMelbourne (2014-07-06 07:06:20+00:00)
Title: open returns -1 on failure

Hi, spotted a bug. If a call to open() fails it returns -1. You code checks to see if open() returns zero.