collectdctl command hangs on AIX and returns error 0 on Solaris.
[collectd.git] / src / utils_cmd_putnotif.c
index d3cf383..d09eeb3 100644 (file)
@@ -31,7 +31,8 @@
     WARNING ("handle_putnotif: failed to write to socket #%i: %s", \
        fileno (fh), sstrerror (errno, errbuf, sizeof (errbuf))); \
     return -1; \
-  }
+  } \
+  fflush(fh);
 
 static int set_option_severity (notification_t *n, const char *value)
 {