Fix syscmd() output out of sync

Submitted by: smp@clem.systemsix.com
This commit is contained in:
Andrey A. Chernov 1995-03-11 16:57:54 +00:00
parent c2766222c3
commit 3ee80812fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7004

View File

@ -170,7 +170,10 @@ register int td;
case SYSCTYPE:
/*
* dosys - execute system command
*/
*/
/* Make sure m4 output is NOT interrupted */
fflush(stdout);
fflush(stderr);
if (argc > 2)
sysval = system(argv[2]);
break;