From: Leandro Lucarella Date: Wed, 23 Feb 2005 04:20:02 +0000 (+0000) Subject: Un recurso más para tratar de evitar el race. X-Git-Tag: svn_import~90 X-Git-Url: https://git.llucax.com/software/sercom-old.git/commitdiff_plain/296cd152457559e262fcb64c429ca83f8a0c6b0c Un recurso más para tratar de evitar el race. --- diff --git a/src/sc_test b/src/sc_test index a18499e..e532a7f 100755 --- a/src/sc_test +++ b/src/sc_test @@ -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)) + sleep(0) # para tratar de forzar un sync para que entre al sleep del padre def sigchld(signum, frame): """Signal handler para SIGCHILD."""