Modified subdev to use a dummy pipe for fd rather than /dev/null which wasn't working...