sigaction(SIGALRM, &alrm_act, NULL);
alarm(interval);
- /* Don't buffer data if redirected to a pipe */
- setbuf(stdout, NULL);
-
do {
/* Every device is potentially nonexistent */
set_cifs_nonexistent(cifs_list);
get_localtime(&rectime, 0);
+ /*
+ * Don't buffer data if redirected to a pipe.
+ * Note: With musl-c, the behavior of this function is undefined except
+ * when it is the first operation on the stream.
+ */
+ setbuf(stdout, NULL);
+
/* Get system name, release number and hostname */
__uname(&header);
if (print_gal_header(&rectime, header.sysname, header.release,