From 4d27a33481832ef7d707f356d7074f26a366ae7e Mon Sep 17 00:00:00 2001 From: Mupceet Date: Tue, 7 Jun 2022 12:49:44 +0800 Subject: [PATCH] ignal signal pipe Signed-off-by: Mupceet --- standard/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/standard/main.c b/standard/main.c index 6d40789b..95d3cd03 100644 --- a/standard/main.c +++ b/standard/main.c @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +#include #include "appspawn_adapter.h" #include "appspawn_msg.h" #include "appspawn_server.h" @@ -22,6 +22,7 @@ int main(int argc, char *const argv[]) if (argc <= 0) { return 0; } + (void)signal(SIGPIPE, SIG_IGN); uint32_t argvSize = 0; char *buffer = (char *)argv[0]; int mode = 0; -- Gitee