Changeset 2158


Ignore:
Timestamp:
Aug 23, 2012, 3:31:38 PM (6 years ago)
Author:
matthijs
Message:

mountd: Don't waitpid every second.

It's not entirely clear why this call was needed, but it seems the
recent error handling and timer changes certainly make it obsolete and
possibly cause it to cause unexpected behaviour. It seems this waitpid
might have been here to cover up possible problems in waiting for the
child processes, but this should be improved now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/mountd/src/lib/mount.c

    r2156 r2158  
    10321032}
    10331033
    1034 void mount_check_enum(void)
    1035 {
    1036         waitpid(-1, 0, WNOHANG);
    1037         mount_enum_drives();
    1038 }
    1039 
    10401034void ntfy_read(void)
    10411035{
     
    10941088{
    10951089        INIT_LIST_HEAD(&mounts);
    1096         timer_add(mount_check_enum, 1);
     1090        timer_add(mount_enum_drives, 1);
    10971091        ntfy = inotify_init();
    10981092}
Note: See TracChangeset for help on using the changeset viewer.