Skip to content

Commit 12c52a5

Browse files
committed
Merge pull request #1 from ronnocol/patch-1
Update pipe.rb output - Fix LOGSTASH-1860
2 parents edfde16 + d2d8af4 commit 12c52a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/pipe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def receive(event)
4646
begin
4747
pipe = get_pipe(command)
4848
pipe.puts(output)
49-
rescue IOError, Errno::EPIPE => e
49+
rescue IOError, Errno::EPIPE, Errno::EBADF => e
5050
@logger.error("Error writing to pipe, closing pipe.", :command => command, :pipe => pipe)
5151
drop_pipe(command)
5252
retry

0 commit comments

Comments
 (0)