minix-1.7/fs/usr/src/commands/ash/input.c
/*
 * Close the file(s) that the shell is reading commands from.  Called
 * after a fork is done.
 */
Close the file(s) that the shell is reading commands from.  Called
after a fork is done.
Close the file ( s ) that the shell is reading commands from . Called after a fork is done .
void
closescript() {
	popallfiles();
	if (parsefile->fd > 0) {
		close(parsefile->fd);
		parsefile->fd = 0;
	}
}
void closescript ( ) { popallfiles ( ) ; if ( parsefile -> fd > 0 ) { close ( parsefile -> fd ) ; parsefile -> fd = 0 ; } }
Close the file(s) that the shell is reading commands from.
Close the file ( s ) that the shell is reading commands from .