Add fflush(stdout) to get output in a intuitive order.

This commit is contained in:
pk 1993-12-16 08:33:36 +00:00
parent 757153c5f6
commit a6aa50489e
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ldd.c,v 1.4 1993/12/08 10:17:18 pk Exp $
* $Id: ldd.c,v 1.5 1993/12/16 08:33:36 pk Exp $
*/
#include <sys/param.h>
@ -107,6 +107,7 @@ char *argv[];
(void)close(fd);
printf("%s:\n", *argv);
fflush(stdout);
switch (fork()) {
case -1:

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: ldd.c,v 1.4 1993/12/08 10:17:18 pk Exp $
* $Id: ldd.c,v 1.5 1993/12/16 08:33:36 pk Exp $
*/
#include <sys/param.h>
@ -107,6 +107,7 @@ char *argv[];
(void)close(fd);
printf("%s:\n", *argv);
fflush(stdout);
switch (fork()) {
case -1: