diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-12 16:48:10 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-12 16:48:10 +0000 |
commit | 2bf2b354ad536d1c743097313837b6c14b321815 (patch) | |
tree | 74340ac03972d3e265059d6639c532f03449a820 /src/include/gnunet_helper_lib.h | |
parent | c616caf93688874d0f315209793e6f9c9b22a7cc (diff) | |
download | gnunet-2bf2b354ad536d1c743097313837b6c14b321815.tar.gz gnunet-2bf2b354ad536d1c743097313837b6c14b321815.zip |
stop helpers by closing stdin
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r-- | src/include/gnunet_helper_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h index 7f43f1a64..191d97b80 100644 --- a/src/include/gnunet_helper_lib.h +++ b/src/include/gnunet_helper_lib.h | |||
@@ -81,6 +81,16 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h); | |||
81 | 81 | ||
82 | 82 | ||
83 | /** | 83 | /** |
84 | * Kills the helper by closing its stdin (the helper is expected to catch the | ||
85 | * resulting SIGPIPE and shutdown), closes the pipe and frees the handle | ||
86 | * | ||
87 | * @param h handle to helper to stop | ||
88 | */ | ||
89 | void | ||
90 | GNUNET_HELPER_soft_stop (struct GNUNET_HELPER_Handle *h); | ||
91 | |||
92 | |||
93 | /** | ||
84 | * Continuation function. | 94 | * Continuation function. |
85 | * | 95 | * |
86 | * @param cls closure | 96 | * @param cls closure |