aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-handler.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2001-12-14 19:35:56 +0000
committerWerner Koch <[email protected]>2001-12-14 19:35:56 +0000
commitcfe7ddef47bd2707798e6ca417fbcbb6e7e2f927 (patch)
tree2c7c824f5d16ca23c4d52b6b2410011e7bfbd086 /src/assuan-handler.c
parent* util.h (digitp, hexdigitp): New ctype like macros. (diff)
downloadlibassuan-0-0-0.tar.gz
libassuan-0-0-0.zip
* assuan-listen.c (assuan_close_input_fd): New.V0-0-0NEWPG-0-0-0
(assuan_close_output_fd): New. * assuan-handler.c (std_handler_reset): Always close them after a reset command. (std_handler_bye): Likewise.
Diffstat (limited to 'src/assuan-handler.c')
-rw-r--r--src/assuan-handler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assuan-handler.c b/src/assuan-handler.c
index 8ec8b23..a82bd53 100644
--- a/src/assuan-handler.c
+++ b/src/assuan-handler.c
@@ -54,6 +54,8 @@ std_handler_bye (ASSUAN_CONTEXT ctx, char *line)
{
if (ctx->bye_notify_fnc)
ctx->bye_notify_fnc (ctx);
+ assuan_close_input_fd (ctx);
+ assuan_close_output_fd (ctx);
return -1; /* pretty simple :-) */
}
@@ -68,6 +70,8 @@ std_handler_reset (ASSUAN_CONTEXT ctx, char *line)
{
if (ctx->reset_notify_fnc)
ctx->reset_notify_fnc (ctx);
+ assuan_close_input_fd (ctx);
+ assuan_close_output_fd (ctx);
return 0;
}