PennMUSH Community

Changeset 1194

Show
Ignore:
Timestamp:
01/02/08 21:35:46 (9 months ago)
Author:
shawnw
Message:

Tweaks to inotify code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/bsd.c

    r1187 r1194  
    47414741 
    47424742#define WATCH(name) do { \ 
    4743     if (inotify_add_watch(fd, (name), IN_MODIFY | IN_DELETE_SELF) < 0) \ 
     4743    if (inotify_add_watch(fd, (name),                   \ 
     4744              IN_MODIFY | IN_DELETE_SELF | IN_MOVE_SELF) < 0) \ 
    47444745      do_rawlog(LT_TRACE, "file_watch_init:inotify_add_watch(\"%s\"): %s", \ 
    4745         (name), strerror(errno));
    4746   } while (0); 
     4746        (name), strerror(errno));             
     4747  } while (0) 
    47474748       
     4749 
     4750  do_rawlog(LT_TRACE, 
     4751        "'No such file or directory' errors immediately following are probably harmless."); 
    47484752  for (n = 0; n < 2; n++) { 
    47494753    WATCH(options.connect_file[n]); 
     
    47954799 
    47964800  while (read(fd, &ev, sizeof ev) > 0) { 
     4801    do_rawlog(LT_TRACE, "Got event. Flags: 0x%x", ev.mask); 
    47974802    if (ev.mask != IN_IGNORED) { 
    47984803      do_rawlog(LT_TRACE, 
  • 1.8.3/branches/devel/src/help.c

    r1192 r1194  
    1111#include <ctype.h> 
    1212#include <stdio.h> 
     13#include <errno.h> 
    1314#include "conf.h" 
    1415#include "externs.h" 
     
    366367    return; 
    367368  if ((rfp = fopen(h->file, FOPEN_READ)) == NULL) { 
    368     do_rawlog(LT_ERR, T("Can't open %s for reading"), h->file); 
     369    do_rawlog(LT_ERR, T("Can't open %s for reading: %s"), h->file, 
     370          strerror(errno)); 
    369371    return; 
    370372  }