Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [PATCH] Use getmntent_r(3) to parse /proc/mounts lines
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2010-03-11 18:10:50

Brice Goglin, le Fri 12 Mar 2010 00:03:37 +0100, a écrit :
> Also, isn't getmntent (without _r) enough here?

I guess it will have troubles if it is called concurrently in different
threads: the value returned by getmntent is typically not dynamically