Date: Mon, 13 Jan 1997 22:27:35 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@freebsd.org Subject: Re: number of lines in a file, given its size Message-ID: <Mutt.19970113222735.j@uriah.heep.sax.de> In-Reply-To: <3.0.32.19970113112240.00a38800@dimaga.com>; from Eivind Eklund on Jan 13, 1997 11:22:41 %2B0100 References: <3.0.32.19970113112240.00a38800@dimaga.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As Eivind Eklund wrote: > >malloc errors are bogus, too. :) The hell will break afterwards > >anyway, so it doesn't matter whether it returns `okshells' or > >something else. > > Race condition and possibly (very minor) security problem - I would have it > print "No memory" and exit(EXIT_FAILURE); Hmm. I think calling abort() is better. It gets syslogged. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970113222735.j>