On Wed, Dec 16, 2009 at 01:11:02PM +0100, ольга крыжановская wrote:
> What's the URL of the bugzilla bug?
> 
> IMO the SHOPT_BGX conforms to the POSIX standard. What exactly is the
> test case which fails?

I'm not able to open this bug for external access as this
report is from one of our SuSE Linux Enterprise partners :(

The report its self including the simple test script is:

| If a trap is set for for a signal over 16, the trap mechanism will stop
| functioning.
| 
| Test case - 
| 
| Step1: Run the following program and send it a signal 3 (kill -3).  The 
program
| will correctly intercept the signal, print the requested information and exit.
| 
| Step2: Enable the signal 17 trap and run again.  Issue a signal 3.  The trap
| will not intercept the signal correctly.
| 
| The same trap mechanism was tested in bash and observed to work correctly.
| 
| OS: SuSE SLES 11.
| 
| ====================================================================
| #!/bin/ksh
| 
| Prog=$(basename "$0");
| 
| trap "print; print $Prog '('PID $$')' received signal 3; exit" 3
| #trap "print; print $Prog '('PID $$')' received signal 17; exit" 17
| 
| ((cnt=0))
| 
| trap
| 
| # set -x
| 
| while true
|   do
|   ((cnt+=1))
|   print "In while loop and count is " $cnt
|   sleep 5;
| done
| 
| print "After while loop, exiting now."
| return 0;
| ====================================================================

> On Wed, Dec 16, 2009 at 11:56 AM, Dr. Werner Fink <[email protected]> wrote:
> > Hi all,
> >
> > the feature of the compile SHOPT_BGX option had caused a
> > bug report here.  The user had tested within a loop all
> > available signals and raised a major bugzilla report due
> > not working signal 17 (which is SIGCHLD on his systems).
> >
> > I'd like to ask if this new feauture could be enabled and
> > disabled at runtime by a shell variable e.g. within the
> > `.sh' parameter array or with an option name which could
> > be enabled or disabled with `set -o' ... AFAICS the option
> > monitor does not influence the behaviour (JM 93t+ 2009-12-04)
> >
> >   Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to