Guido van Rossum added the comment: So top ope in tickets about this issue or you will be banned.
On Jul 13, 2017 8:46 AM, "Sanket" <rep...@bugs.python.org> wrote: > > New submission from Sanket: > > import threading > import subprocess > > def B(): > while True: > break > cmd="ps -ef | grep 'shell' | awk '{print $2}' | xargs kill -9" > subprocess.call(cmd, shell=True) > > > def A(): > th = threading.Thread(target=B) > th.start() > > > > > In above code, process with name "shell" has to be killed, but its not > working. While same when I do in simple without thread, its working > > > Why you are not answering here,at last I just had to deal with answer > whether its getting here or else where > > ---------- > components: Library (Lib) > messages: 298293 > nosy: gvanrossum, sanky8793 > priority: normal > severity: normal > status: open > title: Process in not get killed using subprocess.call() in python thread > type: behavior > versions: Python 2.7, Python 3.3 > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue30922> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30922> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com