delorie.com/archives/browse.cgi | search |
From: | Daniel DOT de_Rauglaudre AT inria DOT fr (Daniel de Rauglaudre) |
Subject: | problem in "system()" in b18 |
26 Jun 1997 10:47:19 -0700 : | |
Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
Distribution: | cygnus |
Message-ID: | <199706261600.SAA01507.cygnus.gnu-win32@pauillac.inria.fr> |
Mime-Version: | 1.0 |
Original-To: | gnu-win32 AT cygnus DOT com |
Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
The function "system" does not wait for the ending of command. Example: file "foo.c": main() { system("cat foo.c"); } compile: bash$ gcc foo.c bash$ ./a.exe I see the "bash" prompt before the dump of my file: bash$ main() { system("cat foo.c"); } Maybe there is a link with the bug in the release notes about the fact that "gcc -pipe" was supposed not not work? I saw in the faq.txt that "system()" now invokes "spawnvp()". Is it a problem in spawnvp ? Thank you. -------------------------------------------------------------------------- Daniel de RAUGLAUDRE Projet Cristal - INRIA Rocquencourt Tel: +33 (01) 39 63 53 51 Email: daniel DOT de_rauglaudre AT inria DOT fr Web: http://pauillac.inria.fr/~ddr/ -------------------------------------------------------------------------- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |