ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.145 by root, Tue Jan 17 12:22:59 2006 UTC vs.
Revision 1.146 by root, Tue Jan 17 15:17:39 2006 UTC

1443 } 1443 }
1444 1444
1445 _exit (EXIT_FAILURE); 1445 _exit (EXIT_FAILURE);
1446 1446
1447 default: 1447 default:
1448 { 1448 if (!OPTION (Opt_utmpInhibit))
1449#if defined(HAVE_STRUCT_UTMP) && defined(HAVE_TTYSLOT) 1449 pty->login (cmd_pid, OPTION (Opt_loginShell), rs[Rs_display_name]);
1450 int fdstdin;
1451
1452 fdstdin = dup (STDIN_FILENO);
1453 dup2 (pty->tty, STDIN_FILENO);
1454#endif
1455
1456#ifdef UTMP_SUPPORT
1457 privileged_utmp (SAVE);
1458#endif
1459
1460#if defined(HAVE_STRUCT_UTMP) && defined(HAVE_TTYSLOT)
1461
1462 dup2 (fdstdin, STDIN_FILENO);
1463 close (fdstdin);
1464#endif
1465 }
1466 1450
1467 pty->close_tty (); 1451 pty->close_tty ();
1468 break; 1452 break;
1469 } 1453 }
1470} 1454}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines