[issue30922] Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @sanky8793 please, use the python-list for that https://mail.python.org/mailman/listinfo/python-list Thank you -- nosy: +matrixise -gvanrossum priority: normal -> low stage: -> resolved status: open -> closed ___

[issue30922] Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread Sanket
Sanket added the comment: Can i get solution here -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30922] Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread Guido van Rossum
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" wrote: > > New submission from Sanket: > > import threading > import subprocess > > def B(): > while True: > break > cmd="ps -ef | grep 'shell' |

[issue30922] Process in not get killed using subprocess.call() in python thread

2017-07-13 Thread Sanket
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