From mboxrd@z Thu Jan 1 00:00:00 1970 From: arisawa@ar.aichi-u.ac.jp To: 9fans@cse.psu.edu MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20001228142505.73AFA19A0B@mail.cse.psu.edu> Subject: [9fans] BUG of /sys/src/cmd/split.c Date: Thu, 28 Dec 2000 23:17:55 -0500 Topicbox-Message-UUID: 3e1f47f2-eac9-11e9-9e20-41e7f4b1d025 Hello split.c wastes file descriptor: cpu% split -e '^From' /n/ken/usr/spool/mail/arisawa split 1297714: warning: process exceeds 100 file descriptors The file descriptor is created and discarded in openf(void): void openf(void) { int fd; Bflush(output); Bterm(output); fd = create(name,OWRITE,0666); if(fd < 0) { fprint(2, "grep: can't create %s: %r\n", name); exits("create"); } Binit(output, fd, OWRITE); } Kenji Arisawa E-mail: arisawa@aichi-u.ac.jp