diff options
-rwxr-xr-x | bitbake/bin/bitbake-worker | 8 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index e925054b7f..0e66905441 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -192,9 +192,6 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append | |||
192 | global worker_pipe_lock | 192 | global worker_pipe_lock |
193 | pipein.close() | 193 | pipein.close() |
194 | 194 | ||
195 | signal.signal(signal.SIGTERM, sigterm_handler) | ||
196 | # Let SIGHUP exit as SIGTERM | ||
197 | signal.signal(signal.SIGHUP, sigterm_handler) | ||
198 | bb.utils.signal_on_parent_exit("SIGTERM") | 195 | bb.utils.signal_on_parent_exit("SIGTERM") |
199 | 196 | ||
200 | # Save out the PID so that the event can include it the | 197 | # Save out the PID so that the event can include it the |
@@ -209,6 +206,11 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, append | |||
209 | # This ensures signals sent to the controlling terminal like Ctrl+C | 206 | # This ensures signals sent to the controlling terminal like Ctrl+C |
210 | # don't stop the child processes. | 207 | # don't stop the child processes. |
211 | os.setsid() | 208 | os.setsid() |
209 | |||
210 | signal.signal(signal.SIGTERM, sigterm_handler) | ||
211 | # Let SIGHUP exit as SIGTERM | ||
212 | signal.signal(signal.SIGHUP, sigterm_handler) | ||
213 | |||
212 | # No stdin | 214 | # No stdin |
213 | newsi = os.open(os.devnull, os.O_RDWR) | 215 | newsi = os.open(os.devnull, os.O_RDWR) |
214 | os.dup2(newsi, sys.stdin.fileno()) | 216 | os.dup2(newsi, sys.stdin.fileno()) |
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 7b618c6fb1..40fe87c49f 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -359,7 +359,7 @@ class Git(FetchMethod): | |||
359 | runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir) | 359 | runfetchcmd("%s remote rm origin" % ud.basecmd, d, workdir=ud.clonedir) |
360 | 360 | ||
361 | runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) | 361 | runfetchcmd("%s remote add --mirror=fetch origin %s" % (ud.basecmd, repourl), d, workdir=ud.clonedir) |
362 | fetch_cmd = "LANG=C %s fetch -f --prune --progress %s refs/*:refs/*" % (ud.basecmd, repourl) | 362 | fetch_cmd = "LANG=C %s fetch -f --progress %s refs/*:refs/*" % (ud.basecmd, repourl) |
363 | if ud.proto.lower() != 'file': | 363 | if ud.proto.lower() != 'file': |
364 | bb.fetch2.check_network_access(d, fetch_cmd, ud.url) | 364 | bb.fetch2.check_network_access(d, fetch_cmd, ud.url) |
365 | progresshandler = GitProgressHandler(d) | 365 | progresshandler = GitProgressHandler(d) |