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