Skip to content

Commit

Permalink
Merge pull request #130 from blt04/close_on_exec
Browse files Browse the repository at this point in the history
Ensure socket connections are closed after exec
  • Loading branch information
akzhan committed Feb 3, 2012
2 parents 5bcc2a5 + 616a1ca commit 4c1fc47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bluepill/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def start_listener
loop do
begin
client = self.socket.accept
client.close_on_exec = true
command, *args = client.readline.strip.split(":")
response = begin
mutex { self.send(command, *args) }
Expand Down

0 comments on commit 4c1fc47

Please sign in to comment.