Menu

#1515 eclipse terminates executables wrong

closed-wont-fix
debugger (210)
5
2012-06-28
2012-06-20
jj_
No

"Terminate ALL" works fine, except if there are child threads in my app, only app is closed, threads keep running. This doesn't happen in terminal after Ctrl+C, in this case app and threads are terminated.

PyDev version 2.6.0.2012050900
Eclipse:
Version: Juno Release
Build id: 20120524-0130
OS: Xubuntu 12.04 Desktop edition, but same problem on Win7
Python version 2.7, but same happens on 3.2

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2012-06-28

    Actually, there's no real compatible way of doing what you want... Ctrl+C in some cases may not even end the application (so, PyDev really kills it with the the API in java, which would be the same as going to the task manager and killing it there -- or I believe kill -9 in linux, but I may be wrong here).

    As for child 'zombie' processes, that's not something controllable from PyDev, the application itself must properly handle that.

    Note that if you're running Django, an issue has been already filled: https://code.djangoproject.com/ticket/16982 and there's a workaround you can use for now explained at the end of the page in http://pydev.org/manual_adv_django.html

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2012-06-28
    • status: open --> closed-wont-fix