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.309 by sf-exg, Tue Dec 20 02:52:39 2011 UTC vs.
Revision 1.313 by sf-exg, Sat Jan 7 17:48:56 2012 UTC

1474 CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect, 1474 CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect,
1475 &attributes); 1475 &attributes);
1476 1476
1477 this->parent = top; 1477 this->parent = top;
1478 1478
1479 old_width = szHint.width;
1480 old_height = szHint.height;
1481
1482 set_title (rs [Rs_title]); 1479 set_title (rs [Rs_title]);
1483 set_icon_name (rs [Rs_iconName]); 1480 set_icon_name (rs [Rs_iconName]);
1484 1481
1485 classHint.res_name = (char *)rs[Rs_name]; 1482 classHint.res_name = (char *)rs[Rs_name];
1486 classHint.res_class = (char *)RESCLASS; 1483 classHint.res_class = (char *)RESCLASS;
1676 1673
1677 _exit (EXIT_FAILURE); 1674 _exit (EXIT_FAILURE);
1678 1675
1679 default: 1676 default:
1680 if (!option (Opt_utmpInhibit)) 1677 if (!option (Opt_utmpInhibit))
1678 {
1679#ifdef LOG_ONLY_ON_LOGIN
1680 bool login_shell = option (Opt_loginShell);
1681#else
1682 bool login_shell = true;
1683#endif
1681 pty->login (cmd_pid, option (Opt_loginShell), rs[Rs_display_name]); 1684 pty->login (cmd_pid, login_shell, rs[Rs_display_name]);
1685 }
1682 1686
1683 pty->close_tty (); 1687 pty->close_tty ();
1684 1688
1685 child_ev.start (cmd_pid); 1689 child_ev.start (cmd_pid);
1686 1690
1711#elif defined (SRIOCSREDIR) 1715#elif defined (SRIOCSREDIR)
1712 int fd; 1716 int fd;
1713 1717
1714 fd = open (CONSOLE, O_WRONLY, 0); 1718 fd = open (CONSOLE, O_WRONLY, 0);
1715 if (fd >= 0) 1719 if (fd >= 0)
1716 if (ioctl (fd, SRIOCSREDIR, NULL) < 0) 1720 {
1721 ioctl (fd, SRIOCSREDIR, STDIN_FILENO);
1717 close (fd); 1722 close (fd);
1723 }
1718#endif /* SRIOCSREDIR */ 1724#endif /* SRIOCSREDIR */
1719 } 1725 }
1720 1726
1721 /* reset signals and spin off the command interpreter */ 1727 /* reset signals and spin off the command interpreter */
1722 signal (SIGINT, SIG_DFL); 1728 signal (SIGINT, SIG_DFL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines