Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 4.0.1: problem with sourcing on Solaris

Jos Backus wrote:
> taiko:/depot/src/zsh-4.0.1% cat x                     
> a=`uname -s`
> taiko:/depot/src/zsh-4.0.1% uname -s
> SunOS
> taiko:/depot/src/zsh-4.0.1% truss -f -o out Src/zsh -f
> taiko% . ./x
> [hangs][press ^C]
> taiko% exit

I don't get this.

> Relevant section of truss output:
> ...
> 29084:  setcontext(0xFFBEECE8)
> 29084:  sigprocmask(SIG_BLOCK, 0x000DABE0, 0x000DABFC)  = 0
> 29084:  kill(29085, SIG#0)                              Err#3 ESRCH
> 29084:  kill(29085, SIGCONT)                            Err#3 ESRCH
In particular, this is missing from my output.  Could /etc/zshenv have
anything to do with it?  Or there could be a race --- there are a couple of
cases where zsh will send an explicit SIGCONT, in particular a whole set in
jobs.c.  Or it could be a red herring, to do with you interrupting it, and
the real problem is earlier.

> 29084:  sigsuspend(0xFFBEF000)          (sleeping...)
> 29084:      Received signal #2, SIGINT, in sigsuspend() [caught]
> 29084:  sigsuspend(0xFFBEF000)                          Err#4 EINTR

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author