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:
Stephan Kulow 2014-07-18 12:03:39 +00:00 committed by Git OBS Bridge
commit a75eef57ba
3 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -31,6 +31,7 @@ Name: ksh
%endif
%bcond_with use_locale
%bcond_with vm_debug
%bcond_without skip_signals
BuildRequires: bind-utils
BuildRequires: bison
BuildRequires: flex
@ -540,6 +541,10 @@ fi
SHCOMP=${TMPDIR}/bin/shcomp
export PATH SHCOMP SHELL
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
ln -sf ${root}/lib ${test}/../
unset ${!LESS*}

View File

@ -166,6 +166,9 @@ int main(int argc, char* argv[])
dup2(pts, 2);
close(pts);
close(ptm);
sa.sa_flags = SA_RESTART;
sa.sa_handler = SIG_IGN;
sigaction(SIGHUP, &sa, (struct sigaction*)0);
if (ioctl (0, TIOCSCTTY, 1) < 0) {
perror("pty: can not get controlling tty");
exit(errno);