ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/ptytty.C
(Generate patch)

Comparing libptytty/src/ptytty.C (file contents):
Revision 1.44 by sf-exg, Fri Dec 2 08:45:45 2011 UTC vs.
Revision 1.45 by sf-exg, Tue Dec 20 16:09:32 2011 UTC

329{ 329{
330 /* get master (pty) */ 330 /* get master (pty) */
331 if ((pty = get_pty (&tty, &name)) < 0) 331 if ((pty = get_pty (&tty, &name)) < 0)
332 return false; 332 return false;
333 333
334 fcntl (pty, F_SETFL, O_NONBLOCK);
335
336 /* get slave (tty) */ 334 /* get slave (tty) */
337 if (tty < 0) 335 if (tty < 0)
338 { 336 {
339#ifndef NO_SETOWNER_TTYDEV 337#ifndef NO_SETOWNER_TTYDEV
340 chown (name, getuid (), ttyconf.gid); /* fail silently */ 338 chown (name, getuid (), ttyconf.gid); /* fail silently */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines