ming exec forks ???
Fri Dec 31 13:28:00 GMT 1999
Keraba <firstname.lastname@example.org> writes:
> I'm having trouble with the execv() system call. With the Cygwin
> gcc and libraries it works fine, but with the Ming equivalents
> it acts more like fork(), spawning off a child then continuing,
> without waiting for the child to die first.
I don't know what the problem is, but under windows, you probably
want _spawnv[pe] instead. Go to MS web site and search the docs
-- it's all online.
> I'm sorry, I'd write to the ming-gcc list if I knew of one.
Here's a trivial example:
* spawn test:
/* Set up argv */
argv = "ls";
argv = "-l";
argv = NULL;
fprintf (stderr, "Spawing child: %s\n", argv);
retcode = _spawnvp (_P_WAIT, argv, argv);
if (retcode == -1)
fprintf (stderr, "Child done: retcode = %d\n", retcode);
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin