summaryrefslogtreecommitdiff
path: root/msg.c
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-21 05:52:19 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-21 05:52:19 -0500
commit1a4aaf18f5ec6149315aabc53dbe667f1abfdb62 (patch)
tree5c7ad893e1621b7006566f31d8d16707a0258436 /msg.c
parent87dc23679566c5ad96f4869de6aec39c2a4c3aa7 (diff)
downloadgawk-1a4aaf18f5ec6149315aabc53dbe667f1abfdb62.tar.gz
Add optional shutdown routine for an extension lib.
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/msg.c b/msg.c
index 78818187..dabd20e3 100644
--- a/msg.c
+++ b/msg.c
@@ -158,5 +158,9 @@ gawk_exit(int status)
exit_val = status;
longjmp(fatal_tag, 1);
}
+
+ /* we could close_io() here */
+ close_extensions();
+
exit(status);
}