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.20 by root, Fri Jan 13 07:03:48 2006 UTC vs.
Revision 1.21 by root, Sat Jan 14 10:17:40 2006 UTC

98# ifdef HAVE_UTMP_PID 98# ifdef HAVE_UTMP_PID
99 setutent (); 99 setutent ();
100 strncpy (ut->ut_id, ut_id, sizeof (ut->ut_id)); 100 strncpy (ut->ut_id, ut_id, sizeof (ut->ut_id));
101 ut->ut_type = DEAD_PROCESS; 101 ut->ut_type = DEAD_PROCESS;
102 getutid (ut); /* position to entry in utmp file */ 102 getutid (ut); /* position to entry in utmp file */
103 strncpy (ut_id, ut_id, sizeof (ut_id)); 103 strncpy (this->ut_id, ut_id, sizeof (this->ut_id));
104# endif 104# endif
105#endif 105#endif
106 106
107#ifdef HAVE_STRUCT_UTMPX 107#ifdef HAVE_STRUCT_UTMPX
108 memset (utx, 0, sizeof (struct utmpx)); 108 memset (utx, 0, sizeof (struct utmpx));
109 setutxent (); 109 setutxent ();
110 strncpy (utx->ut_id, ut_id, sizeof (utx->ut_id)); 110 strncpy (utx->ut_id, ut_id, sizeof (utx->ut_id));
111 utx->ut_type = DEAD_PROCESS; 111 utx->ut_type = DEAD_PROCESS;
112 getutxid (utx); /* position to entry in utmp file */ 112 getutxid (utx); /* position to entry in utmp file */
113 strncpy (ut_id, ut_id, sizeof (ut_id)); 113 strncpy (this->ut_id, ut_id, sizeof (this->ut_id));
114#endif 114#endif
115 115
116#ifdef HAVE_STRUCT_UTMP 116#ifdef HAVE_STRUCT_UTMP
117 strncpy (ut->ut_line, pty, sizeof (ut->ut_line)); 117 strncpy (ut->ut_line, pty, sizeof (ut->ut_line));
118 ut->ut_time = time (NULL); 118 ut->ut_time = time (NULL);
246 246
247#ifdef HAVE_STRUCT_UTMP 247#ifdef HAVE_STRUCT_UTMP
248# ifdef HAVE_UTMP_PID 248# ifdef HAVE_UTMP_PID
249 memset (ut, 0, sizeof (struct utmp)); 249 memset (ut, 0, sizeof (struct utmp));
250 setutent (); 250 setutent ();
251 strncpy (ut->ut_id, ut_id, sizeof (ut->ut_id)); 251 strncpy (ut->ut_id, this->ut_id, sizeof (ut->ut_id));
252 ut->ut_type = USER_PROCESS; 252 ut->ut_type = USER_PROCESS;
253 { 253 {
254 struct utmp *tmput = getutid (ut); 254 struct utmp *tmput = getutid (ut);
255 255
256 if (tmput) /* position to entry in utmp file */ 256 if (tmput) /* position to entry in utmp file */
267#endif 267#endif
268 268
269#ifdef HAVE_STRUCT_UTMPX 269#ifdef HAVE_STRUCT_UTMPX
270 memset (utx, 0, sizeof (struct utmpx)); 270 memset (utx, 0, sizeof (struct utmpx));
271 setutxent (); 271 setutxent ();
272 strncpy (utx->ut_id, ut_id, sizeof (utx->ut_id)); 272 strncpy (utx->ut_id, this->ut_id, sizeof (utx->ut_id));
273 utx->ut_type = USER_PROCESS; 273 utx->ut_type = USER_PROCESS;
274 if ((tmputx = getutxid (utx))) /* position to entry in utmp file */ 274 if ((tmputx = getutxid (utx))) /* position to entry in utmp file */
275 utx = tmputx; 275 utx = tmputx;
276 utx->ut_type = DEAD_PROCESS; 276 utx->ut_type = DEAD_PROCESS;
277# if HAVE_UTMPX_SESSION 277# if HAVE_UTMPX_SESSION

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines