We need to pass a filehandle back for open(O_TRUNC) or else the app will