If fclose(0) is called, does this close stdin?
The reason why I\'m asking this is that for some reason, stdin is being closed in my application and I cannot figure out
The following closes stdin: close(0); fclose(stdin); close(STDIN_FILENO); daemon(0, 0);
close(0);
fclose(stdin);
close(STDIN_FILENO);
daemon(0, 0);