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

Re: Modules on HP-UX, with small PATCH



On Thu, May 07, 2009 at 04:30:27PM -0700, Bart Schaefer wrote:
> On May 7, 10:08pm, Paul Ackersviller wrote:
> } Subject: Re: D07multibyte.ztst failure on HP-UX 11.11
> }
> } BTW, there's one other thing with HP-UX tests I've been ignoring until
> } now, but would like to look at shortly.  They end with:
> } 	rm: cannot remove `Modules/zsh/parameter.so': Text file busy
> } 	rm: cannot remove `Modules/zsh/zutil.so': Text file busy
> } 	rm: cannot remove `Modules/zsh/complete.so': Text file busy
> } 	rm: cannot remove `Modules/zsh/complist.so': Text file busy
> } 	rm: cannot remove `Modules/zsh/computil.so': Text file busy
> } 	rm: cannot remove `Modules/zsh/zle.so': Text file busy
> 
> The test script creates a shadow directory with copies of all the
> shared objects so that it has a stable module_path for zmodload.
> HP-UX does paging for shared objects directly out of their files,
> so those files can't be removed while loaded by an application.

Peter's subsequent change didn't get rid of this, but I noticed I'm
able to remove the files as soon as the makefile finishes.  I suspect
timing, and the following less-than-optimal tweak seems to fix it.

Index: Test/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/Makefile.in,v
retrieving revision 1.12
diff -u -r1.12 Makefile.in
--- Test/Makefile.in	17 Oct 2008 08:31:22 -0000	1.12
+++ Test/Makefile.in	12 May 2009 20:20:31 -0000
@@ -54,6 +54,7 @@
 	else \
 	 stat=1; \
 	fi; \
+	sleep 1; \
 	rm -rf Modules .zcompdump; \
 	exit $$stat



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