Re: [PATCH 4/7] build: add infrastructure for using close_range()/closefrom()

Subject: Re: [PATCH 4/7] build: add infrastructure for using close_range()/closefrom()

Date: Sun, 25 Jan 2026 09:27:46 +0900

To: Anton Khirnov, notmuch@notmuchmail.org

Cc:

From: David Bremner


Anton Khirnov <anton@khirnov.net> writes:

> +void
> +closefrom (int lowfd)
> +{
> +    for (int i = lowfd; i < 1024; i++)
> +	close (i);
> +}

Maybe I'm revealing my ignorance, but I feel like the magic number 1024
deserves an explanation?

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: