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
79a01a60
Commit
79a01a60
authored
Apr 05, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for
https://github.com/opnsense/core/issues/126
parent
e88cf4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
processhandler.py
src/opnsense/service/modules/processhandler.py
+6
-0
No files found.
src/opnsense/service/modules/processhandler.py
View file @
79a01a60
...
@@ -109,6 +109,9 @@ class Handler(object):
...
@@ -109,6 +109,9 @@ class Handler(object):
except
KeyboardInterrupt
:
except
KeyboardInterrupt
:
# exit on <ctrl><c>
# exit on <ctrl><c>
raise
raise
except
SystemExit
:
# stop process handler on system exit
return
except
:
except
:
# something went wrong... send traceback to syslog, restart listener (wait for a short time)
# something went wrong... send traceback to syslog, restart listener (wait for a short time)
print
(
traceback
.
format_exc
())
print
(
traceback
.
format_exc
())
...
@@ -174,6 +177,9 @@ class HandlerClient(threading.Thread):
...
@@ -174,6 +177,9 @@ class HandlerClient(threading.Thread):
# send end of stream characters
# send end of stream characters
self
.
connection
.
sendall
(
"
%
c
%
c
%
c"
%
(
chr
(
0
),
chr
(
0
),
chr
(
0
)))
self
.
connection
.
sendall
(
"
%
c
%
c
%
c"
%
(
chr
(
0
),
chr
(
0
),
chr
(
0
)))
except
SystemExit
:
# ignore system exit related errors
pass
except
:
except
:
print
(
traceback
.
format_exc
())
print
(
traceback
.
format_exc
())
syslog
.
syslog
(
syslog
.
LOG_ERR
,
syslog
.
syslog
(
syslog
.
LOG_ERR
,
...
...
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