about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/getsysstats.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/getsysstats.c')
-rw-r--r--sysdeps/unix/sysv/linux/getsysstats.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index f58e2e288a..eaacf3727c 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -57,6 +57,9 @@ get_proc_path (char *buffer, size_t bufsize)
     fp = __setmntent (_PATH_MNTTAB, "r");
   if (fp != NULL)
     {
+      /* We don't need locking.  */
+      (void) __fsetlocking (fp, FSETLOCKING_BYCALLER);
+
       while ((entry = __getmntent_r (fp, &mount_point, buffer, bufsize))
 	     != NULL)
 	if (strcmp (mount_point.mnt_type, "proc") == 0)