Changed exit(0) to fwrite(STDOUT, '0').