zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: pws@pwstephenson.fsnet.co.uk (Peter Stephenson)
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: Bug with parameter module
Date: Sun, 5 Dec 1999 12:48:05 +0000 (GMT)	[thread overview]
Message-ID: <E11ub5B-0003ke-00@crucigera.fysh.org> (raw)
In-Reply-To: <E11uPpM-0007KC-00.1999-12-05-00-47-00@mail12.svr.pol.co.uk> from Peter Stephenson at "Dec 5, 1999  0:47:37 am"

Peter Stephenson wrote:
>The shell hangs.  It seems that executing fn uses some wrapper associated
>with the parameter module which then won't unload.

Count me as "not surprised".  Unloading modules before exit is all very
well, but hanging if they won't unload is just asking for trouble.

>                                                    There should be some
>mode to force unloading on exit

No, it's simpler than that.  Just ignore errors; *attempt* to unload
each module, but leave it if it doesn't unload.

Forcing an unload when the module's code may be on the call stack seems
dangerous, and will at least be confusing to those using debuggers.

>                                (this is the real problem worked around in
>the case of zle by Clint's patch in 8862, I would think).

Yes.  That patch isn't necessary if you just ignore errors.

-zefram


  parent reply	other threads:[~1999-12-05 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-05  0:47 Peter Stephenson
1999-12-05  2:58 ` Bart Schaefer
1999-12-05 12:48 ` Zefram [this message]
1999-12-05 18:07   ` Peter Stephenson
1999-12-06 10:25 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E11ub5B-0003ke-00@crucigera.fysh.org \
    --to=zefram@fysh.org \
    --cc=pws@pwstephenson.fsnet.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).