… | |
… | |
1676 | |
1676 | |
1677 | _exit (EXIT_FAILURE); |
1677 | _exit (EXIT_FAILURE); |
1678 | |
1678 | |
1679 | default: |
1679 | default: |
1680 | if (!option (Opt_utmpInhibit)) |
1680 | if (!option (Opt_utmpInhibit)) |
|
|
1681 | { |
|
|
1682 | #ifdef LOG_ONLY_ON_LOGIN |
|
|
1683 | bool login_shell = option (Opt_loginShell); |
|
|
1684 | #else |
|
|
1685 | bool login_shell = true; |
|
|
1686 | #endif |
1681 | pty->login (cmd_pid, option (Opt_loginShell), rs[Rs_display_name]); |
1687 | pty->login (cmd_pid, login_shell, rs[Rs_display_name]); |
|
|
1688 | } |
1682 | |
1689 | |
1683 | pty->close_tty (); |
1690 | pty->close_tty (); |
1684 | |
1691 | |
1685 | child_ev.start (cmd_pid); |
1692 | child_ev.start (cmd_pid); |
1686 | |
1693 | |