Use fclose(stdin) to close stdin instead of close(0). VS8's FILE stream implementation of stdin breaks if the descriptor is closed behind its back. This method of closing stdin should be more portable anyway.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.