<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<pre wrap="">>It is now indeed more discerning, but it has reported Fork failed. But
>the fork most certainly has not failed! The shell command invoked has
>run, and what's more, completed successfully, producing the expected files.
> Does anyone have any ideas?<!---->
<a class="moz-txt-link-abbreviated" href="mailto:andrewg@felinemenace.org">andrewg@felinemenace.org</a> suggested:
Can you check the errno? strerror(errno); should give you a string of why it
failed. (Just be careful not to use other stuff which touches errno after the
fork()
</pre>
Of course - very good suggestion (embarrassed I didn't think of it)... anyway...<br>
<br>
it returns 10, which perror tells me is "No child processes".<br>
<br>
Sooo, I suppose the spawned process is somehow disassociated from the process
group prior to execution of the wait() embedded within the system()? Duuh...
I'm still stumped, but I guess we are on to something?<br>
<br>
On the other hand, if a fork does really fail, one might expect errno to
be 10 in that case too.<br>
<br>
I've half a mind to break it out into a fork/exec/wait for myself, but, uh,
ugh. I guess I'm lazy. Please, briliant insights, anybody?<br>
<br>
</body>
</html>