Subversion Repositories public

Rev

Rev 55 | Rev 63 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 55 Rev 61
Line 395... Line 395...
395
 
395
 
396
  do {
396
  do {
397
    len = read(m_fd, m_buf, INOTIFY_BUFLEN);
397
    len = read(m_fd, m_buf, INOTIFY_BUFLEN);
398
  } while (fNoIntr && len == -1 && errno == EINTR);
398
  } while (fNoIntr && len == -1 && errno == EINTR);
399
 
399
 
400
  if (errno == EWOULDBLOCK)
400
  if (len == -1 && !(errno == EWOULDBLOCK || errno == EINTR))
401
    return;
-
 
402
 
-
 
403
  if (len < 0)
-
 
404
    throw InotifyException(IN_EXC_MSG("reading events failed"), errno, this);
401
    throw InotifyException(IN_EXC_MSG("reading events failed"), errno, this);
405
 
402
 
-
 
403
  if (len == -1)
-
 
404
    return;
-
 
405
 
406
  IN_WRITE_BEGIN
406
  IN_WRITE_BEGIN
407
 
407
 
408
  ssize_t i = 0;
408
  ssize_t i = 0;
409
  while (i < len) {
409
  while (i < len) {
410
    struct inotify_event* pEvt = (struct inotify_event*) &m_buf[i];
410
    struct inotify_event* pEvt = (struct inotify_event*) &m_buf[i];