From dc8b41142091719a305b810819aa5a78c252a911 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 9 Aug 2018 17:04:03 +0200 Subject: [PATCH] configd, call shutdown before close, https://github.com/opnsense/core/commit/d6d9374b66ccfc861d5ed1bfcd30ac949f2fe4ce --- src/opnsense/service/modules/processhandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opnsense/service/modules/processhandler.py b/src/opnsense/service/modules/processhandler.py index 5b149316892..529552833ce 100644 --- a/src/opnsense/service/modules/processhandler.py +++ b/src/opnsense/service/modules/processhandler.py @@ -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 @@ -227,6 +228,7 @@ def run(self): ) finally: if not exec_in_background: + self.connection.shutdown(socket.SHUT_RDWR) self.connection.close()