changeset 24616:66729bff9877

utils.cc (octave_sleep): Use wrapper for gnulib function (bug #52876).
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 17 Jan 2018 21:12:47 +0100
parents 3daa67b7a243
children 89b0a53258b7
files libinterp/corefcn/utils.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc	Wed Jan 17 11:25:42 2018 -0800
+++ b/libinterp/corefcn/utils.cc	Wed Jan 17 21:12:47 2018 +0100
@@ -1374,7 +1374,7 @@
 
   struct timespec hundredths_delay = { 0, static_cast<long> (fraction) };
 
-  nanosleep (&hundredths_delay, nullptr);
+  octave_nanosleep_wrapper (&hundredths_delay, nullptr);
 
   // Sleep for the whole tenths portion, allowing interrupts every
   // tenth.
@@ -1383,7 +1383,7 @@
 
   for (int i = 0; i < static_cast<int> (tenths); i++)
     {
-      nanosleep (&one_tenth, nullptr);
+      octave_nanosleep_wrapper (&one_tenth, nullptr);
 
       octave_quit ();
     }
@@ -1399,7 +1399,7 @@
     {
       for (int i = 0; i < 10; i++)
         {
-          nanosleep (&one_tenth, nullptr);
+          octave_nanosleep_wrapper (&one_tenth, nullptr);
 
           octave_quit ();
         }