From: root Date: Tue, 17 Jan 2006 16:50:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=27bcd7ceaa206420558ad46ee00797ed94d74390;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index 8dae42d0..f81ecba6 100644 --- a/Changes +++ b/Changes @@ -39,6 +39,7 @@ WISH: support tex fonts anymore. - add tsl/fsl and related capabilities to the terminfo description, to set the window title. + - removed all traces of SMOOTH_REFRESH. - nuked QNX support. 7.0 Fri Jan 13 14:02:18 CET 2006 diff --git a/src/init.C b/src/init.C index bfee0820..63664aad 100644 --- a/src/init.C +++ b/src/init.C @@ -1445,8 +1445,10 @@ rxvt_term::run_command (const char *const *argv) _exit (EXIT_FAILURE); default: +#if UTMP_SUPPORT if (!OPTION (Opt_utmpInhibit)) pty->login (cmd_pid, OPTION (Opt_loginShell), rs[Rs_display_name]); +#endif pty->close_tty (); break; diff --git a/src/ptytty.C b/src/ptytty.C index acdac2f0..94c11593 100644 --- a/src/ptytty.C +++ b/src/ptytty.C @@ -392,7 +392,9 @@ rxvt_ptytty_unix::rxvt_ptytty_unix () rxvt_ptytty_unix::~rxvt_ptytty_unix () { +#if UTMP_SUPPORT logout (); +#endif put (); } @@ -539,11 +541,13 @@ void serve () } else if (cmd.type == command::login) { +#if UTMP_SUPPORT if (find (ptys.begin (), ptys.end (), cmd.id)) { cmd.hostname[sizeof (cmd.hostname) - 1] = 0; cmd.id->login (cmd.cmd_pid, cmd.login_shell, cmd.hostname); } +#endif } else if (cmd.type == command::destroy) { diff --git a/src/ptytty.h b/src/ptytty.h index 5b380c67..a8c31a65 100644 --- a/src/ptytty.h +++ b/src/ptytty.h @@ -67,6 +67,9 @@ public: rxvt_ptytty_unix (); ~rxvt_ptytty_unix (); + bool get (); + void put (); + #if UTMP_SUPPORT int utmp_pos; int cmd_pid; @@ -82,9 +85,6 @@ public: char ut_id[5]; #endif - bool get (); - void put (); - void login (int cmd_pid, bool login_shell, const char *hostname); void logout (); #endif diff --git a/src/rxvt.h b/src/rxvt.h index 312d728f..cac5d4ba 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -186,7 +186,9 @@ struct rxvt_ptytty { } virtual bool get () = 0; +#if UTMP_SUPPORT virtual void login (int cmd_pid, bool login_shell, const char *hostname) = 0; +#endif void close_tty (); bool make_controlling_tty ();