This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sanky8793
Recipients gvanrossum, sanky8793
Date 2017-07-13.15:46:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499960768.83.0.441889883415.issue30922@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-07-13 15:46:08sanky8793setrecipients: + sanky8793, gvanrossum
2017-07-13 15:46:08sanky8793setmessageid: <1499960768.83.0.441889883415.issue30922@psf.upfronthosting.co.za>
2017-07-13 15:46:08sanky8793linkissue30922 messages
2017-07-13 15:46:08sanky8793create