Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsubiron committed Feb 10, 2015
1 parent 66382e6 commit 9a48a31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def _filter(obj):

def system(command):
command = _filter(command)
if Verbose: print('Executing: ' + command)
if Verbose:
print('Executing: ' + command)
return os.system(command)

def system_quiet(command):
Expand Down Expand Up @@ -73,9 +74,8 @@ def _popen_internal(cmd=[], working_dir=None, shell=__is_windows):
try:
out, err = process.communicate(timeout=15)
except subprocess.TimeoutExpired:
print('WARNING: suricate: timeout expired, killing the process...')
process.kill()
out, err = process.communicate()
print('WARNING: suricate: timeout expired, ignoring output')
return None, None
if err:
print('WARNING: suricate: subprocess returned error: %s' % decode(err))
return decode(out), decode(err)
Expand Down
2 changes: 1 addition & 1 deletion profiles/Default.suricate-profile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// the "command" key in your User folder will cause the commands here to be
// ignored.

"user_commands": {},
// "user_commands": {},

// Optionally, you can define the default fields for the commands in this
// profile. If no default is specified for a given tag, commands must contain
Expand Down

0 comments on commit 9a48a31

Please sign in to comment.