[issue44415] sys.stdout.flush and print() hanging

2021-06-13 Thread Rajeev Chaurasia
New submission from Rajeev Chaurasia : I am running an application using cronjob. This application runs on Linux(X86_64) platform where inside a loop we have print() and sys.stdout.flush() statements. This loop iterates around 500 times and after the loop we have few more sys.stdout.flush

[issue44415] sys.stdout.flush and print() hanging

2021-06-14 Thread Rajeev Chaurasia
Rajeev Chaurasia added the comment: self.logger = lib.logger.Log() We have cronjob entry to call the application everyday $crontab -e 0 1 * * * /scratch/rajeev/cronjob/exachk.sh exachk.sh makes call to my python application as- python3 /opt/oracle.ahf/exachk/exachk.py Yes I am redirecting

[issue44415] sys.stdout.flush and print() hanging

2021-06-15 Thread Rajeev Chaurasia
Rajeev Chaurasia added the comment: Thanks a lot Serhiy. Your suggested fix resolved the issue. -Rajeev -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue44433] processes created by subprocess.Popen is not terminating

2021-06-16 Thread Rajeev Chaurasia
New submission from Rajeev Chaurasia : I am using Linux OS and using multiprocessing in my application. The child process execution get completed but the processes are not terminating. childprocess = "/opt/oracle.ahf/exachk/exachk -silentforce -showpass -dball -nocvu -autorun_id DE