X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcmd_neonserv_extscript.c;h=8c31bb29d5f258dc57a21ae35e6c097895f54f3d;hb=e97252314899373d0e5ff6236a518a5bbf4a7bcb;hp=67374d15668560da89f828ff930925c1f8ac990c;hpb=e3b52b8d2c02940d9b6bb86cfa4062b32cfb4fed;p=NeonServV5.git diff --git a/src/cmd_neonserv_extscript.c b/src/cmd_neonserv_extscript.c index 67374d1..8c31bb2 100644 --- a/src/cmd_neonserv_extscript.c +++ b/src/cmd_neonserv_extscript.c @@ -134,7 +134,9 @@ CMD_BIND(neonserv_cmd_extscript) { cache->chan = chan; cache->answere_channel = answere_channel; cache->pipe = popen(command, "r"); + #ifndef WIN32 fcntl(fileno(cache->pipe), F_SETFL, O_NONBLOCK); + #endif timeq_add(1, neonserv_cmd_extscript_callback, cache); }