* [9fans] BUG of /sys/src/cmd/split.c
@ 2000-12-29 4:17 arisawa
0 siblings, 0 replies; 2+ messages in thread
From: arisawa @ 2000-12-29 4:17 UTC (permalink / raw)
To: 9fans
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] BUG of /sys/src/cmd/split.c
@ 2000-12-28 14:51 rob pike
0 siblings, 0 replies; 2+ messages in thread
From: rob pike @ 2000-12-28 14:51 UTC (permalink / raw)
To: 9fans
cpu% split -e '^From' /n/ken/usr/spool/mail/arisawa
split 1297714: warning: process exceeds 100 file descriptors
You should delete some mail.
-rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-12-29 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-29 4:17 [9fans] BUG of /sys/src/cmd/split.c arisawa
-- strict thread matches above, loose matches on Subject: below --
2000-12-28 14:51 rob pike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).