Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Weirdness in comm(1)

On Sun, Nov 29, 2009 at 01:31:30AM +0700, Robert Elz wrote:
>   | That doesn't mean they might not pull in pthread somehow...
> I doubt that linking the library would hurt, only actually creating
> threads, which is less likely by accident - but someone has to remember
> that even though getline() is thread safe (the real one), this replacement
> version isn't, in case of other upgrades to applications that use it.

Even using threads by itself is not an issue. The problem only exists if
the same FILE is accessed by multiple threads. The function here was
intended for the case of not pulling up getline at all -- I am in favor
of doing the latter and just making it not visible by default.


Home | Main Index | Thread Index | Old Index