… | |
… | |
241 | memset (ut, 0, sizeof (struct utmp)); |
241 | memset (ut, 0, sizeof (struct utmp)); |
242 | setutent (); |
242 | setutent (); |
243 | strncpy (ut->ut_id, this->ut_id, sizeof (ut->ut_id)); |
243 | strncpy (ut->ut_id, this->ut_id, sizeof (ut->ut_id)); |
244 | ut->ut_type = USER_PROCESS; |
244 | ut->ut_type = USER_PROCESS; |
245 | { |
245 | { |
246 | struct utmp *tmput = getutid (ut); |
246 | struct utmp *tmput = getutid (ut); |
247 | |
247 | |
248 | if (tmput) /* position to entry in utmp file */ |
248 | if (tmput) /* position to entry in utmp file */ |
249 | ut = tmput; |
249 | ut = tmput; |
250 | } |
250 | } |
251 | ut->ut_type = DEAD_PROCESS; |
251 | ut->ut_type = DEAD_PROCESS; |
… | |
… | |
286 | updwtmp (RXVT_WTMP_FILE, ut); |
286 | updwtmp (RXVT_WTMP_FILE, ut); |
287 | # else |
287 | # else |
288 | rxvt_update_wtmp (RXVT_WTMP_FILE, ut); |
288 | rxvt_update_wtmp (RXVT_WTMP_FILE, ut); |
289 | # endif |
289 | # endif |
290 | # endif |
290 | # endif |
291 | # ifdef HAVE_STRUCT_UTMPX |
291 | # if defined(HAVE_STRUCT_UTMPX) && defined(HAVE_UPDWTMPX) |
292 | # if HAVE_UPDWTMPX |
|
|
293 | updwtmpx (RXVT_WTMPX_FILE, utx); |
292 | updwtmpx (RXVT_WTMPX_FILE, utx); |
294 | # else |
|
|
295 | pututxline (utx); |
|
|
296 | # endif |
|
|
297 | # endif |
293 | # endif |
298 | } |
294 | } |
299 | #endif |
295 | #endif |
300 | |
296 | |
301 | /* |
297 | /* |