Changeset 1194
- Timestamp:
- 01/02/08 21:35:46 (9 months ago)
- Files:
-
- 1.8.3/branches/devel/src/bsd.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/help.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/src/bsd.c
r1187 r1194 4741 4741 4742 4742 #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) \ 4744 4745 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) 4747 4748 4749 4750 do_rawlog(LT_TRACE, 4751 "'No such file or directory' errors immediately following are probably harmless."); 4748 4752 for (n = 0; n < 2; n++) { 4749 4753 WATCH(options.connect_file[n]); … … 4795 4799 4796 4800 while (read(fd, &ev, sizeof ev) > 0) { 4801 do_rawlog(LT_TRACE, "Got event. Flags: 0x%x", ev.mask); 4797 4802 if (ev.mask != IN_IGNORED) { 4798 4803 do_rawlog(LT_TRACE, 1.8.3/branches/devel/src/help.c
r1192 r1194 11 11 #include <ctype.h> 12 12 #include <stdio.h> 13 #include <errno.h> 13 14 #include "conf.h" 14 15 #include "externs.h" … … 366 367 return; 367 368 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)); 369 371 return; 370 372 }
