Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A serious bug in execution – where to debug?
- X-seq: zsh-workers 44597
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: A serious bug in execution – where to debug?
- Date: Tue, 30 Jul 2019 20:16:39 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+pjI9/aGujbol+Pf80rdy50/L/AWVzIEKjhXjrNGJDM=; b=e1pSWVhRXuAaWldPYZMwNph5rsYq1UgkuDuYLdQnK9zzsUIRP2Pb8gCvhTkwG/i4Ad KENcRlnRjLQRca5HhSqinvdbFql3/S7rdWrrbP3lwrpTNnDeBRhGUddCk1eWgsMgMs4J dJuNP8kheIXixSSVFwUXa/q/XPzYL1Az4PJeyNKlQKznNYBrVHNrLg9tQyg6gM/8srXL q4I1uptn9nIkxNA4C/fFUASnhjY/FK/lgqAOMTlYXoVbR5Z3PTBjbcY/ZGyl9FG5Ovdx KwirRKWBCgZlIZHzvHDnK1fpDwtOn3z6WQFvV/C3anz3O5hLDMoglUqypKBUNP1nCtI1 1F3g==
- In-reply-to: <CAN=4vMqtA5k_rDfyn_Pk0Q6isxcJVN1mE+8-k+O=21qYDS+HCg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCKrg_PnZ6jKLoAwR8XQnswT-Bs2TJA7oefhd_gRtHKUQ@mail.gmail.com> <CAN=4vMpWFR=_TPZ2hcQC_FvKSiPFW2_isn_BYxYaoUKLqu-4Gw@mail.gmail.com> <CAKc7PVCn0PNzu5PxCW=nwZ6unt5CtTarPOo387yvg0+bekuSyQ@mail.gmail.com> <CAN=4vMqtA5k_rDfyn_Pk0Q6isxcJVN1mE+8-k+O=21qYDS+HCg@mail.gmail.com>
On Tue, 30 Jul 2019 at 20:12, Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> On Tue, Jul 30, 2019 at 7:55 PM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> > Yes, implementation of plugin effects withdrawal (i.e. unloading)
> > bases on this. I saw that your initialization of the prompt is called
> > from precmd, where the shadowing isn't active. So (today) I've
> > implemented: on-demand wrapping of any function call with the
> > shadowing-enabling code, and then after a single call unwrapping. This
> > way I'm able to unload your plugin.
>
> When you unload plugins, you also remove temporary files and kill
> background daemons, right?
>
> Roman.
No. I guess that the temp-files removal can be easily added – by
shadowing mktemp call. I didn't think about killing of the background
processes. I guess this too can be added, but I suspect that most of
them will be invisible in $jobtexts, i.e. disowned, so it might get
hard. Thanks for the suggestions. How are you running the gitstatus
process in the plugin?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author