On Wed, Apr 20, 2011 at 8:58 AM, Ben Pfaff <[email protected]> wrote:
> On Tue, Apr 19, 2011 at 06:50:44PM -0700, Jesse Gross wrote:
>> On Mon, Apr 18, 2011 at 11:25 AM, Ben Pfaff <[email protected]> wrote:
>> > With all that taken into account, here is a new version. ?On Linux, I
>> > prefer the fchmod() based solution, because someday OVS may have to
>> > add support for threads and the umask is not thread-local.
>>
>> Doesn't this just introduce another portability problem?  If we do
>> introduce threads then it will be less likely that we notice it since
>> things will work fine on Linux.
>
> We'll have to do extensive grepping around at that point anyway and
> the system-specific #if should stand out well enough.

But what's the point of introducing this #ifdef in the first place?
It seems like there are two situations:
* We don't introduce threading, in which case there is no problem but
also no benefit from this extra piece of OS dependent code which will
rarely get exercised.
* We do implement threading, in which case there is a piece of code
which we will hopefully remember or find that needs to be fixed.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to