1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 14:46:14 +01:00

Ignore signal.SIGWINCH.

Fixes #584
This commit is contained in:
Matej Cepl 2020-08-27 16:56:36 +02:00
parent a57b8a60b2
commit bf7899da83
Signed by untrusted user: mcepl
GPG Key ID: 79205802880BC9D8
2 changed files with 6 additions and 2 deletions

View File

@ -49,11 +49,16 @@ except ImportError:
def catchterm(*args):
raise oscerr.SignalInterrupt
# Signals which should terminate the program safely
for name in 'SIGBREAK', 'SIGHUP', 'SIGTERM':
num = getattr(signal, name, None)
if num:
signal.signal(num, catchterm)
# Signals which should be ignored
for sig in (signal.SIGWINCH,):
signal.signal(sig, signal.SIG_IGN)
def run(prg, argv=None):
try:

View File

@ -9,7 +9,6 @@ from . import cmdln
from . import conf
from . import oscerr
import sys
import signal
import time
import imp
import inspect
@ -1276,7 +1275,7 @@ class Osc(cmdln.Cmdln):
t = linkinfo.get('project')
if t is None:
print("Skipping package ", p, " since it is a source link pointing inside the project.")
continue
continue
print("Submitting package ", p)
try:
result = create_submit_request(apiurl, project, p, target_project, src_update=src_update)