# File lib/puppet/external/event-loop/event-loop.rb, line 244 244: def will_block= (wants_blocking) 245: if respond_to?(:fcntl) and defined?(Fcntl) and defined?(Fcntl::F_GETFL) and defined?(Fcntl::O_NONBLOCK) 246: flags = fcntl(Fcntl::F_GETFL, 0) 247: if wants_blocking 248: flags &= ~Fcntl::O_NONBLOCK 249: else 250: flags |= Fcntl::O_NONBLOCK 251: end 252: fcntl(Fcntl::F_SETFL, flags) 253: end 254: end