- proc = subprocess.Popen(params, stdout=stdout, stderr=stderr, #stdin=stdin,
- preexec_fn=secure_process(chroot_dir, uid, gid, tiempo_cpu))
+ proc = subprocess.Popen(params, stdout=stdout, stderr=stderr, stdin=stdin,
+ cwd=chroot_dir, close_fds=True, preexec_fn=secure_process(chroot_dir, uid, gid, tiempo_cpu))