Skip to content

Commit 4eb16e4

Browse files
(PUP-11897) Simplifyy wait_flags setting
This change simplifies the setting of wait_flags; the `0` is simpler to look up in the table of valid flags in the ruby docs.
1 parent 86bf20b commit 4eb16e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/util/execution.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def self.execute(command, options = NoOptionsSpecified)
238238
output << reader.read_nonblock(4096) if ready
239239
rescue Errno::EAGAIN
240240
rescue EOFError
241-
wait_flags &= ~Process::WNOHANG
241+
wait_flags = 0
242242
end
243243
end
244244

0 commit comments

Comments
 (0)