> 15: > 16: def background_read > 17: loop do > 18: if select([$sock], nil, nil, nil) > 19: print "r" > 20: dat = $bg_rd_sock.recv(65536) > 21: $global_signal.signal > 22: end > 23: end > 24: end > 25: Whoops ---- line 20 has a typo. That thread was exiting anyway. <blush> .... However, that just makes the script simpler... I've removed the background_read thread entirely, and its associated socket. I'm still getting the deadlock... Hopefully have this figured out soon. Regards, Bill