Changeset 3643
- Timestamp:
- 06/19/08 16:50:17 (3 months ago)
- Files:
-
- trunk/tango/io/DeviceConduit.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/io/DeviceConduit.d
r3642 r3643 109 109 override void detach () 110 110 { 111 if (handle )111 if (handle != INVALID_HANDLE_VALUE) 112 112 CloseHandle (handle); 113 handle = cast(HANDLE) null;113 handle = INVALID_HANDLE_VALUE; 114 114 } 115 115 … … 201 201 { 202 202 if (handle >= 0) 203 if (posix.close (handle) is -1) 204 error; 203 posix.close (handle); 205 204 handle = -1; 206 205 }












