]> git.llucax.com Git - software/sercom-old.git/blobdiff - src/sc_test
Un recurso más para tratar de evitar el race.
[software/sercom-old.git] / src / sc_test
index a18499efd56f19079d31d6a5fa7fa4bb7e51ca3c..e532a7fb4f8ac12b89352915cfe51116c54345e0 100755 (executable)
@@ -36,6 +36,7 @@ class secure_process:
         resource.setrlimit(resource.RLIMIT_MEMLOCK, x2(100))
         resource.setrlimit(resource.RLIMIT_NOFILE, x2(100))
         resource.setrlimit(resource.RLIMIT_NPROC, x2(0))
         resource.setrlimit(resource.RLIMIT_MEMLOCK, x2(100))
         resource.setrlimit(resource.RLIMIT_NOFILE, x2(100))
         resource.setrlimit(resource.RLIMIT_NPROC, x2(0))
+        sleep(0) # para tratar de forzar un sync para que entre al sleep del padre
 
 def sigchld(signum, frame):
     """Signal handler para SIGCHILD."""
 
 def sigchld(signum, frame):
     """Signal handler para SIGCHILD."""