bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Cleanup when SIGINT or SIGHUP is encountered


From: Elias Mårtenson
Subject: [Bug-apl] Cleanup when SIGINT or SIGHUP is encountered
Date: Wed, 29 Jan 2014 22:07:06 +0800

Currently, the cleanup() function is never called when the process is killed. This causes the Emacs plugin to leave the socket file in /tmp. It would also prevent the terminal colour settings from being restored.

Attached is a patch that fixes this for these signals.

My only concern is with the naming of the "old" variable in the handler. The two variables, both having "old" in the name is ugly. :-)

Regards,
Elias

Attachment: signals.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]