Skip to content

Commit ed8aa9f

Browse files
author
Michael Klishin
committed
Be explicit about return codes
1 parent 6bb0849 commit ed8aa9f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

ruby/receive.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
end
1717
rescue Interrupt => _
1818
conn.close
19+
20+
exit(0)
1921
end

ruby/receive_logs.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@
2121
rescue Interrupt => _
2222
ch.close
2323
conn.close
24+
25+
exit(0)
2426
end

ruby/receive_logs_direct.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
rescue Interrupt => _
2828
ch.close
2929
conn.close
30+
31+
exit(0)
3032
end

ruby/receive_logs_topic.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
rescue Interrupt => _
2828
ch.close
2929
conn.close
30+
31+
exit(0)
3032
end

0 commit comments

Comments
 (0)