Changeset 2287 for trunk/src/kash/show.c
- Timestamp:
- Feb 25, 2009, 6:40:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/show.c
r2280 r2287 433 433 fd = shfile_open(&psh->fdtab, s, O_APPEND | O_RDWR | O_CREAT, 0600); 434 434 if (fd != -1) { 435 int fd2 = fcntl(fd, F_DUPFD, 199);435 int fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 199); 436 436 if (fd2 == -1) 437 fd2 = fcntl(fd, F_DUPFD, 99);437 fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 99); 438 438 if (fd2 == -1) 439 fd2 = fcntl(fd, F_DUPFD, 49);439 fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 49); 440 440 if (fd2 == -1) 441 fd2 = fcntl(fd, F_DUPFD, 18);441 fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 18); 442 442 if (fd2 == -1) 443 fd2 = fcntl(fd, F_DUPFD, 10);443 fd2 = shfile_fcntl(&psh->fdtab, fd, F_DUPFD, 10); 444 444 if (fd2 != -1) { 445 445 close(fd); … … 453 453 } 454 454 } 455 setvbuf(tracefile, (char *)NULL, _IOLBF, 0); //setlinebuf(tracefile);455 setvbuf(tracefile, (char *)NULL, _IOLBF, 1024); 456 456 fputs("\nTracing started.\n", tracefile); 457 457 }
Note:
See TracChangeset
for help on using the changeset viewer.