mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Fix cleanup
This commit is contained in:
parent
e1bae626f1
commit
d4f47e920b
1 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import errno
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
|
|
@ -42,4 +43,9 @@ class IntegrationTestsContext(certbot_context.IntegrationTestsContext):
|
|||
pid = None
|
||||
|
||||
if pid:
|
||||
os.kill(pid, signal.SIGTERM)
|
||||
try:
|
||||
os.kill(pid, signal.SIGTERM)
|
||||
except OSError as err:
|
||||
# Ignore "No such process" error, Apache may already be stopped.
|
||||
if err.errno != errno.ESRCH:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in a new issue