Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Project not found: home:Andreas_Schwab:riscv:ghc:9.6
SUSE:SLE-12-SP1:GA
cloud-init.2784
cloud-init-python2-sigpipe.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cloud-init-python2-sigpipe.patch of Package cloud-init.2784
Index: cloud-init-0.7.6/cloudinit/util.py =================================================================== --- cloud-init-0.7.6.orig/cloudinit/util.py +++ cloud-init-0.7.6/cloudinit/util.py @@ -59,6 +59,7 @@ from cloudinit import version from cloudinit.settings import (CFG_BUILTIN) +from signal import signal, SIGPIPE, SIG_DFL _DNS_REDIRECT_IP = None LOG = logging.getLogger(__name__) @@ -1559,7 +1560,8 @@ def subp(args, data=None, rcs=None, env= stdin = subprocess.PIPE sp = subprocess.Popen(args, stdout=stdout, stderr=stderr, stdin=stdin, - env=env, shell=shell) + env=env, shell=shell, + preexec_fn=lambda: signal(SIGPIPE, SIG_DFL)) (out, err) = sp.communicate(data) except OSError as e: raise ProcessExecutionError(cmd=args, reason=e)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor