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.43 by sf-exg, Sun Nov 20 14:38:44 2011 UTC vs.
Revision 1.44 by sf-exg, Fri Dec 2 08:45:45 2011 UTC

376 ioctl (tty, I_PUSH, "ldterm"); 376 ioctl (tty, I_PUSH, "ldterm");
377 ioctl (tty, I_PUSH, "ttcompat"); 377 ioctl (tty, I_PUSH, "ttcompat");
378 } 378 }
379#endif 379#endif
380 380
381#if UTMP_SUPPORT
382# if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID)
383 int fd_stdin = dup (STDIN_FILENO);
384 dup2 (tty, STDIN_FILENO);
385
386 utmp_pos = ttyslot ();
387
388 dup2 (fd_stdin, STDIN_FILENO);
389 close (fd_stdin);
390# endif
391#endif
392
381 return true; 393 return true;
382} 394}
383 395

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines