* PATCH: Better fix for st->list == NULL in endtrapscope()
@ 2000-06-10 19:49 Bart Schaefer
2000-06-10 20:22 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2000-06-10 19:49 UTC (permalink / raw)
To: zsh-workers
This replaces 11839, but it doesn't do anything for 11854.
Index: Src/signals.c
===================================================================
@@ -669,7 +669,8 @@
newshf->nam = ztrdup(shf->nam);
newshf->flags = shf->flags;
newshf->funcdef = dupeprog(shf->funcdef, 0);
- }
+ } else
+ st->flags &= ~ZSIG_FUNC;
st->list = newshf;
} else {
st->list = sigfuncs[sig] ? dupeprog(sigfuncs[sig], 0) : NULL;
@@ -853,7 +854,7 @@
if (sigtrapped[sig])
unsettrap(sig);
sigtrapped[sig] = st->flags;
- if (st->flags && (st->list != NULL)) {
+ if (st->flags) {
Eprog prog = (st->flags & ZSIG_FUNC) ?
((Shfunc) st->list)->funcdef : (Eprog) st->list;
/* prevent settrap from saving this */
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: Better fix for st->list == NULL in endtrapscope()
2000-06-10 19:49 PATCH: Better fix for st->list == NULL in endtrapscope() Bart Schaefer
@ 2000-06-10 20:22 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2000-06-10 20:22 UTC (permalink / raw)
To: zsh-workers
On Jun 10, 7:49pm, Bart Schaefer wrote:
} Subject: PATCH: Better fix for st->list == NULL in endtrapscope()
}
} This replaces 11839, but it doesn't do anything for 11854.
And hence I've decided not to commit it yet.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-10 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-10 19:49 PATCH: Better fix for st->list == NULL in endtrapscope() Bart Schaefer
2000-06-10 20:22 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).