Re: Sendmail 8.9.0 claims a Linux kernel bug

Richard B. Johnson (root@chaos.analogic.com)
Sat, 27 Jun 1998 22:12:53 -0400 (EDT)


On Sat, 27 Jun 1998, Raul Miller wrote:

>
> > > Alan> Fix sendmail, better yet get a better mail daemon
>
I hacked sendmail to make it behave. However, I note that the code
uses a 'trick' that may cause a memory leak.

(1) Procedure calls (2) to wait for a connection.
(2) When a connection occurs, fork to (3), parent loops to (2).
(3) This is the child. It 'returns' to (1).

So, this continues 'forever'. The child, which returned to parent code
does eventually die, presumably freeing its resources, but the fd
(socket) returned by accept will continue to increase in value. I
don't know what happens when this value wraps the int, but I think
it's time to find another sendmail because this code is not very
maintainable, which is a major understatement.

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.105 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu