View | Details | Raw Unified | Return to bug 204823 | Differences between
and this patch

Collapse All | Expand All

(-)main.c (+3 lines)
Lines 265-270 int runprogram( int argc, char *argv[] ) Link Here
265
	setsid();
265
	setsid();
266
        // This line makes the ptty our controlling tty. We do not otherwise need it open
266
        // This line makes the ptty our controlling tty. We do not otherwise need it open
267
        slavept=open(name, O_RDWR );
267
        slavept=open(name, O_RDWR );
268
        if ( ioctl(slavept, TIOCSCTTY, NULL) ) {
269
            perror("sshpass: Failed to recover the controlling tty");
270
        }
268
        close( slavept );
271
        close( slavept );
269
	
272
	
270
	close( masterpt );
273
	close( masterpt );

Return to bug 204823