From be03ed43bd53834382027e3aff66af29b6f8c78a Mon Sep 17 00:00:00 2001 From: jun7 Date: Thu, 7 Jun 2018 14:29:52 +0900 Subject: [PATCH] No server is not fatal, just NULL --- wyebrun.c | 2 +- wyebrun.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wyebrun.c b/wyebrun.c index 0bacd54..b44f40d 100644 --- a/wyebrun.c +++ b/wyebrun.c @@ -412,7 +412,7 @@ static char *request(char *exe, Com type, bool caller, char *data) if (caller) g_mutex_lock(&cli->retm); if (!ipcsend(exe, INPUT, type, caller ? cli->pid : NULL, data)) - fatal(3); //spawning svr failse is fatal + P(Spawning %s failed !!, exe) } close(lock); } diff --git a/wyebrun.h b/wyebrun.h index b6cf0fa..98c5b95 100644 --- a/wyebrun.h +++ b/wyebrun.h @@ -27,11 +27,11 @@ along with wyebrun. If not, see . #define WYEBKEEPSEC 3 //client -//wyebrun spawns the exe if wyebsend failes +//wyebrun spawns the exe automatically char *wyebget( char *exe, char *data); //don't free the ret val void wyebsend(char *exe, char *data); void wyebkeep(char *exe, int sec); //keep alive. default is 3s -//loop the wyebuntil. to stop, use g_source_remove +//loop the wyebkeep. to stop, use g_source_remove guint wyebloop(char *exe, int sec); //send stdin to svr and ret data to stdout //blank and enter exit it