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.22 by root, Sun Jan 15 05:14:12 2006 UTC vs.
Revision 1.24 by root, Mon Jan 16 10:37:32 2006 UTC

194 i++; 194 i++;
195 } 195 }
196 fclose (fd0); 196 fclose (fd0);
197 } 197 }
198# endif 198# endif
199
200 } 199 }
201#endif 200#endif
202 201
203#ifdef WTMP_SUPPORT 202#ifdef WTMP_SUPPORT
204# ifdef WTMP_ONLY_ON_LOGIN 203# ifdef WTMP_ONLY_ON_LOGIN
210 updwtmp (RXVT_WTMP_FILE, ut); 209 updwtmp (RXVT_WTMP_FILE, ut);
211# else 210# else
212 rxvt_update_wtmp (RXVT_WTMP_FILE, ut); 211 rxvt_update_wtmp (RXVT_WTMP_FILE, ut);
213# endif 212# endif
214# endif 213# endif
215# ifdef HAVE_STRUCT_UTMPX 214# if defined(HAVE_STRUCT_UTMPX) && defined(HAVE_UPDWTMPX)
216# if HAVE_UPDWTMPX
217 updwtmpx (RXVT_WTMPX_FILE, utx); 215 updwtmpx (RXVT_WTMPX_FILE, utx);
218# else
219 pututxline (utx);
220# endif
221# endif 216# endif
222 } 217 }
223#endif 218#endif
224#if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE) 219#if defined(LASTLOG_SUPPORT) && defined(RXVT_LASTLOG_FILE)
225 if (OPTION (Opt_loginShell)) 220 if (OPTION (Opt_loginShell))
246 memset (ut, 0, sizeof (struct utmp)); 241 memset (ut, 0, sizeof (struct utmp));
247 setutent (); 242 setutent ();
248 strncpy (ut->ut_id, this->ut_id, sizeof (ut->ut_id)); 243 strncpy (ut->ut_id, this->ut_id, sizeof (ut->ut_id));
249 ut->ut_type = USER_PROCESS; 244 ut->ut_type = USER_PROCESS;
250 { 245 {
251 struct utmp *tmput = getutid (ut); 246 struct utmp *tmput = getutid (ut);
252 247
253 if (tmput) /* position to entry in utmp file */ 248 if (tmput) /* position to entry in utmp file */
254 ut = tmput; 249 ut = tmput;
255 } 250 }
256 ut->ut_type = DEAD_PROCESS; 251 ut->ut_type = DEAD_PROCESS;
291 updwtmp (RXVT_WTMP_FILE, ut); 286 updwtmp (RXVT_WTMP_FILE, ut);
292# else 287# else
293 rxvt_update_wtmp (RXVT_WTMP_FILE, ut); 288 rxvt_update_wtmp (RXVT_WTMP_FILE, ut);
294# endif 289# endif
295# endif 290# endif
296# ifdef HAVE_STRUCT_UTMPX 291# if defined(HAVE_STRUCT_UTMPX) && defined(HAVE_UPDWTMPX)
297# if HAVE_UPDWTMPX
298 updwtmpx (RXVT_WTMPX_FILE, utx); 292 updwtmpx (RXVT_WTMPX_FILE, utx);
299# else
300 pututxline (utx);
301# endif
302# endif 293# endif
303 } 294 }
304#endif 295#endif
305 296
306 /* 297 /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines