Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
cloud-init.14639
cloud-init-python2-sigpipe.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cloud-init-python2-sigpipe.patch of Package cloud-init.14639
--- cloudinit/util.py.orig +++ cloudinit/util.py @@ -35,6 +35,7 @@ import time from errno import ENOENT, ENOEXEC from base64 import b64decode, b64encode +from signal import signal, SIGPIPE, SIG_DFL from six.moves.urllib import parse as urlparse import six @@ -2031,7 +2032,8 @@ def subp(args, data=None, rcs=None, env= try: sp = subprocess.Popen(bytes_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: if status_cb:
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