Accepting request 241334 from shells
- Skip signal test as currently ksh93 uses malloc() within signal handlers and this cause deadlocks even with libast memory management OBS-URL: https://build.opensuse.org/request/show/241334 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ksh?expand=0&rev=104
This commit is contained in:
commit
a75eef57ba
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 17 11:07:34 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
- Skip signal test as currently ksh93 uses malloc() within signal
|
||||||
|
handlers and this cause deadlocks even with libast memory
|
||||||
|
management
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 8 12:54:51 UTC 2014 - werner@suse.de
|
Tue Jul 8 12:54:51 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
5
ksh.spec
5
ksh.spec
@ -31,6 +31,7 @@ Name: ksh
|
|||||||
%endif
|
%endif
|
||||||
%bcond_with use_locale
|
%bcond_with use_locale
|
||||||
%bcond_with vm_debug
|
%bcond_with vm_debug
|
||||||
|
%bcond_without skip_signals
|
||||||
BuildRequires: bind-utils
|
BuildRequires: bind-utils
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -540,6 +541,10 @@ fi
|
|||||||
SHCOMP=${TMPDIR}/bin/shcomp
|
SHCOMP=${TMPDIR}/bin/shcomp
|
||||||
export PATH SHCOMP SHELL
|
export PATH SHCOMP SHELL
|
||||||
pushd ${test}
|
pushd ${test}
|
||||||
|
%if %{with skip_signals}
|
||||||
|
echo "Skip signal.sh test as this is broken due used malloc() in signal handlers"
|
||||||
|
rm -vf signal.sh
|
||||||
|
%endif
|
||||||
typeset -i failed=0
|
typeset -i failed=0
|
||||||
ln -sf ${root}/lib ${test}/../
|
ln -sf ${root}/lib ${test}/../
|
||||||
unset ${!LESS*}
|
unset ${!LESS*}
|
||||||
|
@ -166,6 +166,9 @@ int main(int argc, char* argv[])
|
|||||||
dup2(pts, 2);
|
dup2(pts, 2);
|
||||||
close(pts);
|
close(pts);
|
||||||
close(ptm);
|
close(ptm);
|
||||||
|
sa.sa_flags = SA_RESTART;
|
||||||
|
sa.sa_handler = SIG_IGN;
|
||||||
|
sigaction(SIGHUP, &sa, (struct sigaction*)0);
|
||||||
if (ioctl (0, TIOCSCTTY, 1) < 0) {
|
if (ioctl (0, TIOCSCTTY, 1) < 0) {
|
||||||
perror("pty: can not get controlling tty");
|
perror("pty: can not get controlling tty");
|
||||||
exit(errno);
|
exit(errno);
|
||||||
|
Loading…
Reference in New Issue
Block a user