Changeset 262 for trunk/src/sh_utmp.c


Ignore:
Timestamp:
Dec 8, 2009, 11:25:50 PM (15 years ago)
Author:
katerina
Message:

Fix for ticket #179, and some minor bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_utmp.c

    r259 r262  
    581581  int errnum = 0;
    582582 
    583   if (sh.flag.checkSum != SH_CHECK_INIT)
    584     sh_inotify_wait_for_change(mode_path[1], &inotify_watch,
    585                                &errnum, ShUtmpInterval);
    586 
     583  if ( (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE) &&
     584       sh.flag.checkSum != SH_CHECK_INIT )
     585    {
     586      sh_inotify_wait_for_change(mode_path[1], &inotify_watch,
     587                                 &errnum, ShUtmpInterval);
     588    }
     589 
    587590  lastcheck  = tcurrent;
     591
    588592  if (SH_INOTIFY_ERROR(errnum))
    589593    {
Note: See TracChangeset for help on using the changeset viewer.