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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index 26f8179afe..58f55ac99c 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -94,7 +94,7 @@ __get_nprocs ()
 	     string "processor".  We don't have to fear extremely long
 	     lines since the kernel will not generate them.  8192
 	     bytes are really enough.  */
-	  while (fgets (buffer, sizeof buffer, fp) != NULL)
+	  while (fgets_unlocked (buffer, sizeof buffer, fp) != NULL)
 	    if (strncmp (buffer, "processor", 9) == 0)
 	      ++result;
 
@@ -141,7 +141,7 @@ phys_pages_info (const char *format)
 	     string "processor".  We don't have to fear extremely long
 	     lines since the kernel will not generate them.  8192
 	     bytes are really enough.  */
-	  while (fgets (buffer, sizeof buffer, fp) != NULL)
+	  while (fgets_unlocked (buffer, sizeof buffer, fp) != NULL)
 	    if (sscanf (buffer, format, &result) == 1)
 	      {
 		result /= (__getpagesize () / 1024);