Skip to content

Commit

Permalink
configd, call shutdown before close, d6d9374
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Aug 9, 2018
1 parent 6bf3d13 commit dc8b411
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/opnsense/service/modules/processhandler.py
Expand Up @@ -188,6 +188,7 @@ def run(self):
if exec_in_background:
result = self.message_uuid
self.connection.sendall('%s\n%c%c%c' % (result, chr(0), chr(0), chr(0)))
self.connection.shutdown(socket.SHUT_RDWR)
self.connection.close()

# execute requested action
Expand Down Expand Up @@ -227,6 +228,7 @@ def run(self):
)
finally:
if not exec_in_background:
self.connection.shutdown(socket.SHUT_RDWR)
self.connection.close()


Expand Down

1 comment on commit dc8b411

@fichtner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works fine, thanks!

Please sign in to comment.