I\'m adapting this Django management command for my own purposes. The script is a simple while-loop daemon that reads from sys.stdin (line 152, in command.handle()
command.handle()
Is there a chance the stream has been closed (e.g. EOF was sent)?