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

Re: Unload modules failure on Sparc Solaris

Vin Shelton wrote:
> On the Solaris 5.8 Sparc box here at work, I'm getting a coredump in
> the V01 modload test:

Thanks for spotting this:  the problem was unloading zsh/system, because
the parameter entries for the errnos array weren't set properly.

Index: Src/Modules/system.c
RCS file: /cvsroot/zsh/zsh/Src/Modules/system.c,v
retrieving revision 1.1
diff -u -r1.1 system.c
--- Src/Modules/system.c	30 Aug 2003 19:06:11 -0000	1.1
+++ Src/Modules/system.c	17 Sep 2003 10:51:02 -0000
@@ -391,6 +391,8 @@
 	return 1;
     pm_nos->gets.afn = errnosgetfn;
+    pm_nos->sets.afn = arrsetfn;
+    pm_nos->unsetfn = stdunsetfn;
     if (!addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab))) {

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

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