spawnl and waitpid

Thinker thinker at branda.to
Tue Feb 27 13:32:09 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

naima.mans at gmail.com wrote:
> On 27 f憝, 18:54, Thinker <thin... at branda.to> wrote:

> hello

> ha ok...

> i tried this one and the browser don't write the message at once...
> I have alos tried with thread and have the same result... :(

Does child-process terminate it-self in a very short time ?
It can be a race condition, here.
You can try to sleep for a while in child-process to make sure parent
being executed. Parent process may not schedule to run immediately
after spawn. And, you can print some thing before os.spawnl() to make
sure that message can be delivered successfully.


- --
Thinker Li - thinker at branda.to thinker.li at gmail.com
http://heaven.branda.to/~thinker/GinGin_CGI.py
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5Hkp1LDUVnWfY8gRAtDdAKCKy8/ap5VJvZV14nhSCWYfLZdyYACffJ+Y
0sHMgyaQBmsOMwq/rxEvm1Q=
=qjTU
-----END PGP SIGNATURE-----




More information about the Python-list mailing list