local/toolchest/ksh/sh/edit.c
/*
 * give two tries for ioctl
 * interrupts are ignored
 */
give two tries for ioctl
interrupts are ignored
give two tries for ioctl interrupts are ignored
static int control(fd,request,arg)
{
	register int i;
	register int k = 2;
	errno = 0;
	while(k--)
	{
		if((i = ioctl(fd,request,arg)) != SYSERR)
			return(i);
		if(errno == EINTR)
		{
			errno = 0;
			k++;
		}
	}
	return(SYSERR);
}
static int control ( fd , request , arg ) { register int i ; register int k = 2 ; errno = 0 ; while ( k -- ) { if ( ( i = ioctl ( fd , request , arg ) ) != SYSERR ) return ( i ) ; if ( errno == EINTR ) { errno = 0 ; k ++ ; } } return ( SYSERR ) ; }
give two tries for ioctl
 interrupts are ignored
give two tries for ioctl interrupts are ignored