summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:59:29 +0100
committerAxel Beckert <abe@deuxchevaux.org>2018-12-24 04:59:29 +0100
commit44b0a9736f79ce2f7861f1c5d613797d9e3c8561 (patch)
tree0abea7c909b136293a596b3f59c87d0609b772d7
parent901b8110bd143aba9e32350607f3ea3c7ae34df1 (diff)
downloadzsh-44b0a9736f79ce2f7861f1c5d613797d9e3c8561.tar.gz
zsh-44b0a9736f79ce2f7861f1c5d613797d9e3c8561.zip
Remove all cherry-picked patches
-rw-r--r--debian/patches/cherry-pick-551ff842-43464-another-attachtty-fix.patch109
-rw-r--r--debian/patches/cherrypick_decc78c72__svn:_Allow_hyphens_in_command_name_aliases.patch17
-rw-r--r--debian/patches/series2
3 files changed, 0 insertions, 128 deletions
diff --git a/debian/patches/cherry-pick-551ff842-43464-another-attachtty-fix.patch b/debian/patches/cherry-pick-551ff842-43464-another-attachtty-fix.patch
deleted file mode 100644
index fcb04ecfe..000000000
--- a/debian/patches/cherry-pick-551ff842-43464-another-attachtty-fix.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-Origin: upstream (commit 551ff842721d6ca83727dbe6cd40178f46cc8201)
-Author: Peter Stephenson <p.w.stephenson@ntlworld.com>
-Date: Sun Sep 16 19:13:38 2018 +0100
-Description: 43464: Another attachtty() fix.
- If list_pipe_job triggered more than once we need to know
- the most recent process group leader, so record that
- both if the attach happened in the main shell on in
- entersubsh().
-
- Also don't pass back proocess group for ESUB_ASYNC subshells.
-
-diff --git a/Src/exec.c b/Src/exec.c
-index b9af9ea63..a667b078d 100644
---- a/Src/exec.c
-+++ b/Src/exec.c
-@@ -1036,7 +1036,7 @@ entersubsh(int flags, struct entersubsh_ret *retp)
- if (!(flags & ESUB_ASYNC))
- attachtty(jobtab[thisjob].gleader);
- }
-- if (retp) {
-+ if (retp && !(flags & ESUB_ASYNC)) {
- retp->gleader = jobtab[list_pipe_job].gleader;
- retp->list_pipe_job = list_pipe_job;
- }
-@@ -1058,12 +1058,13 @@ entersubsh(int flags, struct entersubsh_ret *retp)
- !jobtab[list_pipe_job].gleader)
- jobtab[list_pipe_job].gleader = jobtab[thisjob].gleader;
- setpgrp(0L, jobtab[thisjob].gleader);
-- if (!(flags & ESUB_ASYNC))
-+ if (!(flags & ESUB_ASYNC)) {
- attachtty(jobtab[thisjob].gleader);
-- if (retp) {
-- retp->gleader = jobtab[thisjob].gleader;
-- if (list_pipe_job != thisjob)
-- retp->list_pipe_job = list_pipe_job;
-+ if (retp) {
-+ retp->gleader = jobtab[thisjob].gleader;
-+ if (list_pipe_job != thisjob)
-+ retp->list_pipe_job = list_pipe_job;
-+ }
- }
- }
- }
-diff --git a/Src/jobs.c b/Src/jobs.c
-index db2e87ec1..2d58319a8 100644
---- a/Src/jobs.c
-+++ b/Src/jobs.c
-@@ -40,6 +40,11 @@ mod_export pid_t origpgrp;
-
- /**/
- mod_export pid_t mypgrp;
-+
-+/* the last process group to attach to the terminal */
-+
-+/**/
-+pid_t last_attached_pgrp;
-
- /* the job we are working on */
-
-@@ -1405,6 +1410,11 @@ addproc(pid_t pid, char *text, int aux, struct timeval *bgtime,
- jobtab[thisjob].gleader = gleader;
- if (list_pipe_job_used != -1)
- jobtab[list_pipe_job_used].gleader = gleader;
-+ /*
-+ * Record here this is the latest process group to grab the
-+ * terminal as attachtty() was run in the subshell.
-+ */
-+ last_attached_pgrp = gleader;
- } else if (!jobtab[thisjob].gleader)
- jobtab[thisjob].gleader = pid;
- /* attach this process to end of process list of current job */
-diff --git a/Src/signals.c b/Src/signals.c
-index 99aad0fab..26d88abc2 100644
---- a/Src/signals.c
-+++ b/Src/signals.c
-@@ -540,8 +540,8 @@ wait_for_processes(void)
- if (WIFEXITED(status) &&
- pn->pid == jn->gleader &&
- killpg(pn->pid, 0) == -1) {
-- jn->gleader = 0;
-- if (!(jn->stat & STAT_NOSTTY)) {
-+ if (last_attached_pgrp == jn->gleader &&
-+ !(jn->stat & STAT_NOSTTY)) {
- /*
- * This PID was in control of the terminal;
- * reclaim terminal now it has exited.
-@@ -552,6 +552,7 @@ wait_for_processes(void)
- attachtty(mypgrp);
- adjustwinsize(0);
- }
-+ jn->gleader = 0;
- }
- }
- update_job(jn);
-diff --git a/Src/utils.c b/Src/utils.c
-index 075d27241..5a9fbdd32 100644
---- a/Src/utils.c
-+++ b/Src/utils.c
-@@ -4670,6 +4670,10 @@ attachtty(pid_t pgrp)
- ep = 1;
- }
- }
-+ else
-+ {
-+ last_attached_pgrp = pgrp;
-+ }
- }
- }
-
diff --git a/debian/patches/cherrypick_decc78c72__svn:_Allow_hyphens_in_command_name_aliases.patch b/debian/patches/cherrypick_decc78c72__svn:_Allow_hyphens_in_command_name_aliases.patch
deleted file mode 100644
index 022c6db91..000000000
--- a/debian/patches/cherrypick_decc78c72__svn:_Allow_hyphens_in_command_name_aliases.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Origin: commit decc78c72110159bd8a27faf579c020abca6cb0b
-Author: Daniel Shahaf <d.s@daniel.shahaf.name>
-Date: Fri Sep 14 14:25:07 2018 +0000
-Description: _svn: Allow hyphens in command name aliases.
- Used by svn 1.11.0-rc1.
-
---- a/Completion/Unix/Command/_subversion
-+++ b/Completion/Unix/Command/_subversion
-@@ -34,7 +34,7 @@
- typeset -gHA _svn_cmds
- if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then
- _svn_cmds=(
-- ${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
-+ ${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?-]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
- )
- if (( $? == 0 )); then
- _store_cache svn-cmds _svn_cmds
diff --git a/debian/patches/series b/debian/patches/series
index 14d4bba19..cb6fdacc2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,2 @@
further-mitigate-test-suite-hangs.patch
update-debian-sections.patch
-cherrypick_decc78c72__svn:_Allow_hyphens_in_command_name_aliases.patch
-cherry-pick-551ff842-43464-another-attachtty-fix.patch