write(1, "opened 2000 files\n", 18opened 2000 files ) = 18 dup2(2004, 1) = 1 close(2004) = 0 fcntl64(1, F_SETFD, 0) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb130d8) = -1 ENOTTY (Inappropriate ioctl for device) _llseek(1, 0, [0], SEEK_CUR) = 0 socketpair(PF_FILE, SOCK_STREAM, 0, [2004, 2005]) = 0 ioctl(2004, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13258) = -1 EINVAL (Invalid argument) _llseek(2004, 0, 0xbfb132a0, SEEK_CUR) = -1 ESPIPE (Illegal seek) ioctl(2004, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13258) = -1 EINVAL (Invalid argument) _llseek(2004, 0, 0xbfb132a0, SEEK_CUR) = -1 ESPIPE (Illegal seek) ioctl(2005, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13258) = -1 EINVAL (Invalid argument) _llseek(2005, 0, 0xbfb132a0, SEEK_CUR) = -1 ESPIPE (Illegal seek) ioctl(2005, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13258) = -1 EINVAL (Invalid argument) _llseek(2005, 0, 0xbfb132a0, SEEK_CUR) = -1 ESPIPE (Illegal seek) fcntl64(2004, F_SETFD, FD_CLOEXEC) = 0 fcntl64(2005, F_SETFD, FD_CLOEXEC) = 0 ioctl(2005, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb130d8) = -1 EINVAL (Invalid argument) _llseek(2005, 0, 0xbfb13120, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat64(2005, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 dup2(2005, 1) = 1 dup(2005) = 2006 fcntl64(2005, F_GETFD) = 0x1 (flags FD_CLOEXEC) dup2(2006, 2005) = 2005 fcntl64(2005, F_SETFD, FD_CLOEXEC) = 0 close(2006) = 0 fcntl64(1, F_SETFD, 0) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb130d8) = -1 EINVAL (Invalid argument) _llseek(1, 0, 0xbfb13120, SEEK_CUR) = -1 ESPIPE (Illegal seek) ioctl(2005, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13108) = -1 EINVAL (Invalid argument) _llseek(2005, 0, 0xbfb13150, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat64(2005, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 dup2(2005, 1) = 1 fcntl64(1, F_SETFD, 0) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb130d8) = -1 EINVAL (Invalid argument) _llseek(1, 0, 0xbfb13120, SEEK_CUR) = -1 ESPIPE (Illegal seek) dup(3) = 2006 ioctl(2006, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13108) = -1 EINVAL (Invalid argument) _llseek(2006, 0, 0xbfb13150, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat64(2006, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 dup2(2006, 1) = 1 close(2006) = 0 fcntl64(1, F_SETFD, 0) = 0 close(2005) = 0 ...many more close() calls... close(5) = 0 close(4) = 0 dup(3) = 4 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfb13108) = -1 EINVAL (Invalid argument) _llseek(4, 0, 0xbfb13150, SEEK_CUR) = -1 ESPIPE (Illegal seek) fstat64(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 write(1, "no problem with 2000!\n", 22no problem with 2000!