Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
f09c1927
Commit
f09c1927
authored
Feb 21, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional logging information included for configd
parent
ffc617a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
processhandler.py
src/opnsense/service/modules/processhandler.py
+4
-2
No files found.
src/opnsense/service/modules/processhandler.py
View file @
f09c1927
...
@@ -138,6 +138,8 @@ class HandlerClient(threading.Thread):
...
@@ -138,6 +138,8 @@ class HandlerClient(threading.Thread):
:return: None
:return: None
"""
"""
result
=
''
exec_command
=
''
try
:
try
:
# receive command, maximum data length is 4k... longer messages will be truncated
# receive command, maximum data length is 4k... longer messages will be truncated
data
=
self
.
connection
.
recv
(
4096
)
data
=
self
.
connection
.
recv
(
4096
)
...
@@ -168,7 +170,7 @@ class HandlerClient(threading.Thread):
...
@@ -168,7 +170,7 @@ class HandlerClient(threading.Thread):
self
.
connection
.
sendall
(
'
%
s
\n
'
%
result
)
self
.
connection
.
sendall
(
'
%
s
\n
'
%
result
)
except
:
except
:
print
(
traceback
.
format_exc
())
print
(
traceback
.
format_exc
())
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'unable to sendback response
, message was
%
s'
%
traceback
.
format_exc
(
))
syslog
.
syslog
(
syslog
.
LOG_ERR
,
'unable to sendback response
[
%
s] for [
%
s], message was
%
s'
%
(
result
,
exec_command
,
traceback
.
format_exc
()
))
finally
:
finally
:
self
.
connection
.
close
()
self
.
connection
.
close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment