|
From: | Robert Parker |
Subject: | Re: Why does a Bash shell script write prompts followed by reads and do it right? |
Date: | Tue, 1 Sep 2015 14:49:55 +0700 |
Not a bug, so likely the wrong forum.Have you tried doing a fflush() after the fputs()? I.e. something to tell the Kernel to "write this out immediately!". In the case of write(), I think you need to use the O_SYNC flag in the open() call.
[Prev in Thread] | Current Thread | [Next in Thread] |