By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

tk.createfilehandler() broken with threaded tcl?

P: n/a
Hello everyone,

I am running into troubles with some of my scripts that make use of
tk.createfilehandler() to catch the output messages of subprocesses I
started with popen2.Popen4() (debian linux, python-2.3.5, tk-8.4.9).
Sometimes when those background processes are running it happens that
the gui freezes and the processlist shows the subprocess in zombie
I've been using the same scripts without problems on mandrake (with
several versions of python and tk), so I came to think the problem may
be the debian build of python / tk. Now I found that on debian (unlike
mandrake) tcl/tk is build with --enable-threads, so I thought this
*might* be the cause for the problems.
I tried and replaced the call to tk.createfilehandler() with a "manual"
loop that reads Popen4.fromchild() to catch the output messages and the
problems seem to be gone, so it looks like using tk.createfilehandler()
with threaded tk is the problem.
Does anyone have an idea if this makes sense or am I on the wrong

Best regards


Sep 14 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.