is C's system() asynchronous?

From: Turgut Kalfaoglu <TURGUT_at_VM.EGE.EDU.TR>
Date: 4 Jun 1997 Wednesday 10:50:44

Is it true that OSF's C compiler creates system() calls that are
asynchronous? I wrote a simple program that does a system() call
at every iteration, and it seems that before the first system()
is over, the program is already several lines past the system() call!

If (yes) is there an easy way to make it synchronous, so the C program
waits for the completion of the system() call?

Thanks, -turgut

Turgut kalfaoglu
EgeNet: http://www.egenet.com.tr
BBS-TURK: http://bbsturk.bbs.tr

Hiroshima '45, Chernobyl '86, Windows '95
Received on Wed Jun 04 1997 - 10:08:33 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT