Re: Thread-safe getopt() - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Thread-safe getopt()
Date
Msg-id 3a8e30b5-717d-436a-9a36-8690a92349e2@iki.fi
Whole thread Raw
In response to Re: Thread-safe getopt()  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 30/03/2026 17:54, Tom Lane wrote:
> Heikki Linnakangas <hlinnaka@iki.fi> writes:
>> Thread-local variables would work too, but I think we'd need to give
>> them different names anyway to avoid conflicting with the plain getopt()
>> global variables.
> 
> Oh, excellent point.  I was thinking the change could be purely local to
> getopt.c, but that probably wouldn't work because some of them are in
> the visible API.

Committed, thanks.

- Heikki




pgsql-hackers by date:

Previous
From: Dagfinn Ilmari Mannsåker
Date:
Subject: Re: remove bits* types
Next
From: Nathan Bossart
Date:
Subject: Re: remove bits* types