Python-2.7: No SIGINT possible in while loop with locks -


i implemented while loop locks in python-2.7 (see example) handle 2 lists loaded values other thread each. code works, not handle sigint (ctrl-c) anymore. example:

while true:   lock1:     if 0 < len(data_buf1):       foo(data_buf1.pop(0))   lock2:     if 0 < len(data_buf2):       bar(data_buf2.pop(0) 

what enable keyboard commands again?

update loop runs in main python process.


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -