From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28049 invoked by alias); 26 Sep 2014 08:15:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19155 Received: (qmail 14317 invoked from network); 26 Sep 2014 08:15:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_FSL_HELO_BARE_IP_2 autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Tassilo Horn Subject: Re: ZSH history not saved anymore Date: Fri, 26 Sep 2014 10:15:02 +0200 Message-ID: <878ul6lrw9.fsf@thinkpad-t440p.tsdh.org> References: <87mw9qdp7s.fsf@thinkpad-t440p.tsdh.org> <20140924200710.2f764272@pws-pc.ntlworld.com> <8738bg2n1v.fsf@thinkpad-t440p.tsdh.org> <140926000448.ZM30835@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2.162.61.164 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:zksuot9w52qHDuJeDeAjpc+rxTY= Bart Schaefer writes: Hi Bart, > } > If you do > } > > } > TRAPHUP() { > } > print "Exiting on signal" >~/zsh_exited > } > exit > } > } > } > > } > do you see the message being written to the file ~/zsh_exited? > } > } Nope, there's no such file after terminating the terminal emulator, so a > } missing SIGHUP is probably the problem. Sending it to the ZSH process > } using kill -SIGHUP works. Thanks for your help in clearing that up. > > That still seems a little strange. If zsh doesn't get HUP, then it > should get EOF and write the history at that point. Something may > be killing it off (with a signal stronger than HUP) before it has a > chance to finish writing. I've tried defining trap functions for HUP, TERM, EXIT, KILL, and ABRT, none of which seem to be executed when closing the terminal emulator. Any idea how to debug that further? Bye, Tassilo