]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r196483,r196634:
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Oct 2009 16:35:12 +0000 (16:35 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Oct 2009 16:35:12 +0000 (16:35 +0000)
commit992270633c2fe432fc379845cb9f1b7b84263c16
tree477553a3ee6413c720a9f0bf9fe6af1c2e741097
parent7b23dba507d63a50da14cb97fd79f9543c8b1398
MFC r196483,r196634:
sh: Fix crash when undefining or redefining a currently executing function

Add a reference count to function definitions.
Memory may leak if a SIGINT arrives in interactive mode at exactly the wrong
time, this will be fixed later by changing SIGINT handling.

PR: bin/137640
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@197959 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/eval.c
bin/sh/exec.c
bin/sh/exec.h
bin/sh/mknodes.c
bin/sh/nodes.c.pat
tools/regression/bin/sh/execution/func1.0 [new file with mode: 0644]
tools/regression/bin/sh/execution/func2.0 [new file with mode: 0644]