Changeset 26402 in vbox for trunk/src/VBox/HostDrivers/Support/solaris
- Timestamp:
- Feb 10, 2010 8:06:45 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57497
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/solaris/SUPLib-solaris.cpp
r26381 r26402 87 87 for (int i = 0; i < SUPLIB_FLT_DUMMYFILES; i++) 88 88 { 89 pThis-> hDummy[i] = -1;89 pThis->ahDummy[i] = -1; 90 90 int hDummy = open("/dev/null", O_RDWR, 0); 91 91 if (hDummy >= 0) 92 92 { 93 if (fcntl( hDummy, F_SETFD, FD_CLOEXEC) == 0)94 pThis-> hDummy[i] = hDummy;93 if (fcntl(ahDummy, F_SETFD, FD_CLOEXEC) == 0) 94 pThis->ahDummy[i] = hDummy; 95 95 else 96 96 { … … 152 152 for (int i = 0; i < SUPLIB_FLT_DUMMYFILES; i++) 153 153 { 154 if (pThis-> hDummy[i] != -1)154 if (pThis->ahDummy[i] != -1) 155 155 { 156 close(pThis-> hDummy[i]);157 pThis-> hDummy[i] = -1;156 close(pThis->ahDummy[i]); 157 pThis->ahDummy[i] = -1; 158 158 } 159 159 }
Note:
See TracChangeset
for help on using the changeset viewer.