/[path-sandbox]/trunk/libsbutil/sbio.c
Gentoo

Diff of /trunk/libsbutil/sbio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 324 Revision 325
50 50
51int sb_open(const char *path, int flags, mode_t mode) 51int sb_open(const char *path, int flags, mode_t mode)
52{ 52{
53 int fd; 53 int fd;
54 54
55 do {
55 fd = sbio_open(path, flags, mode); 56 fd = sbio_open(path, flags, mode);
57 while ((-1 == fd) && (EINTR == errno));
58
59 if ((-1 != fd) && (0 != errno))
60 /* Do not trigger debugging */
61 errno = 0;
62
56 if (-1 == fd) 63 if (-1 == fd)
57 DBG_MSG("Failed to open file '%s'!\n", path); 64 DBG_MSG("Failed to open file '%s'!\n", path);
58 65
59 return fd; 66 return fd;
60} 67}

Legend:
Removed from v.324  
changed lines
  Added in v.325

  ViewVC Help
Powered by ViewVC 1.1.20