*** VERSION 5.3.0 ***
[NeonServV5.git] / src / cmd_neonserv_extscript.c
index 67374d15668560da89f828ff930925c1f8ac990c..13f96a31b074b2dbb7f609792ec0363e6f60aec5 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_neonserv_extscript.c - NeonServ v5.2
+/* cmd_neonserv_extscript.c - NeonServ v5.3
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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);
 }