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

Comparing rxvt-unicode/src/logging.C (file contents):
Revision 1.31 by root, Tue Jan 17 15:17:39 2006 UTC vs.
Revision 1.34 by ayin, Wed Jan 18 16:34:53 2006 UTC

166 166
167#if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID) 167#if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID)
168 { 168 {
169# ifdef HAVE_TTYSLOT 169# ifdef HAVE_TTYSLOT
170 int fdstdin = dup (STDIN_FILENO); 170 int fdstdin = dup (STDIN_FILENO);
171 dup2 (pty->tty, STDIN_FILENO); 171 dup2 (tty, STDIN_FILENO);
172 172
173 i = ttyslot (); 173 i = ttyslot ();
174 if (rxvt_write_bsd_utmp (i, ut)) 174 if (rxvt_write_bsd_utmp (i, ut))
175 utmp_pos = i; 175 utmp_pos = i;
176 176
203# endif 203# endif
204 } 204 }
205#endif 205#endif
206 206
207#ifdef WTMP_SUPPORT 207#ifdef WTMP_SUPPORT
208# ifdef WTMP_ONLY_ON_LOGIN 208#ifdef LOG_ONLY_ON_LOGIN
209 if (login_shell) 209 if (login_shell)
210# endif 210#endif
211 { 211 {
212# ifdef HAVE_STRUCT_UTMP 212# ifdef HAVE_STRUCT_UTMP
213# ifdef HAVE_UPDWTMP 213# ifdef HAVE_UPDWTMP
214 updwtmp (RXVT_WTMP_FILE, ut); 214 updwtmp (RXVT_WTMP_FILE, ut);
215# else 215# else
220 updwtmpx (RXVT_WTMPX_FILE, utx); 220 updwtmpx (RXVT_WTMPX_FILE, utx);
221# endif 221# endif
222 } 222 }
223#endif 223#endif
224#if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE) 224#if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE)
225#ifdef LOG_ONLY_ON_LOGIN
225 if (login_shell) 226 if (login_shell)
227#endif
226 rxvt_update_lastlog (RXVT_LASTLOG_FILE, pty, hostname); 228 rxvt_update_lastlog (RXVT_LASTLOG_FILE, pty, hostname);
227#endif 229#endif
228} 230}
229 231
230/* ------------------------------------------------------------------------- */ 232/* ------------------------------------------------------------------------- */
279 281
280 /* 282 /*
281 * Write ending wtmp entry 283 * Write ending wtmp entry
282 */ 284 */
283#ifdef WTMP_SUPPORT 285#ifdef WTMP_SUPPORT
284# ifdef WTMP_ONLY_ON_LOGIN 286#ifdef LOG_ONLY_ON_LOGIN
285 if (login_shell) 287 if (login_shell)
286# endif 288#endif
287 { 289 {
288# ifdef HAVE_STRUCT_UTMP 290# ifdef HAVE_STRUCT_UTMP
289# ifdef HAVE_UPDWTMP 291# ifdef HAVE_UPDWTMP
290 updwtmp (RXVT_WTMP_FILE, ut); 292 updwtmp (RXVT_WTMP_FILE, ut);
291# else 293# else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines