Changeset 149 for trunk/src/sh_utmp.c


Ignore:
Timestamp:
Jan 7, 2008, 8:52:13 PM (17 years ago)
Author:
katerina
Message:

Make sh_hash.c thread-safe, remove plenty of tiny allocations, improve sh_mem_dump, modify port check to run as thread, and fix unsetting of sh_thread_pause_flag (was too early).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_utmp.c

    r144 r149  
    227227};
    228228
    229 int sh_utmp_null()
    230 {
    231   return 0;
    232 }
    233 
    234 
     229static void set_defaults(void)
     230{
     231  ShUtmpLoginSolo    = SH_ERR_INFO;
     232  ShUtmpLoginMulti   = SH_ERR_WARN;
     233  ShUtmpLogout       = SH_ERR_INFO;
     234  ShUtmpActive       = S_TRUE;
     235  ShUtmpInterval     = 300;
     236  return;
     237}
    235238
    236239
     
    535538   * can be re-enabled.
    536539   */
    537   ShUtmpActive       = S_TRUE;
     540  set_defaults();
    538541  init_done          = 0;
    539542  SL_RETURN( (0), _("sh_utmp_end"));
     543}
     544
     545int sh_utmp_reconf()
     546{
     547  set_defaults();
     548  return 0;
    540549}
    541550
Note: See TracChangeset for help on using the changeset viewer.