On Tue, Jun 5, 2012 at 1:26 AM, Roland Mainz <[email protected]> wrote:
> On Solaris 11/B145 AMD64 builds of ast-ksh.2012-05-31 (we tested all
> four combinations of {32bit,64bit}*{Sun Studio 12.1, gcc3.4.3} ) shows
> weired behaviour with CTRL-Z:
>
> If I put a builtin utility into a subshell and then use CTRL-Z to stop
> it for job control it does not respond... a 2nd CTRL-Z then behaves as
> expected:
> -- snip --
> bash4.0$ ./arch/sol11.i386/bin/ksh
> $ ( sleep 5 )
> ^Z^Z[1] + Stopped                  ( sleep 5 )
> -- snip --
>
> Our Linux builds behave as expected (e.g. CTRL-Z immediately stops the
> job for job control) ... it somehow looks like a Solaris-specific
> issue... ;-(

A "simple" workaround is to use "ulimit -c 0" to force ksh93 to
|fork()| for the subshell... then the CTRL-Z works as expected at the
first usage:
-- snip --
$ ( ulimit -c 0 ; sleep 5 )
^Z[1] + Stopped                  ( ulimit -c 0 ; sleep 5 )
-- snip --

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to