- Timestamp:
- Sep 9, 2012 3:21:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shfile.c
r2553 r2647 1201 1201 1202 1202 #else 1203 return dup2(fdfrom, fdto); 1203 int fdnew = dup2(fdfrom, fdto); 1204 if (fdnew >= 0) 1205 close(fdfrom); 1206 return fdnew; 1204 1207 #endif 1205 1208 } … … 1503 1506 case F_GETFL: TRACE2((NULL, "shfile_fcntl(%d,F_GETFL,ignored=%d) -> %d [%d]\n", fd, arg, rc, errno)); break; 1504 1507 case F_SETFL: TRACE2((NULL, "shfile_fcntl(%d,F_SETFL,newflags=%#x) -> %d [%d]\n", fd, arg, rc, errno)); break; 1505 case F_DUPFD: TRACE2((NULL, "shfile_fcntl(%d,F_DUPF S,minfd=%d) -> %d [%d]\n", fd, arg, rc, errno)); break;1508 case F_DUPFD: TRACE2((NULL, "shfile_fcntl(%d,F_DUPFD,minfd=%d) -> %d [%d]\n", fd, arg, rc, errno)); break; 1506 1509 default: TRACE2((NULL, "shfile_fcntl(%d,%d,%d) -> %d [%d]\n", fd, cmd, arg, rc, errno)); break; 1507 1510 }
Note:
See TracChangeset
for help on using the changeset viewer.