improvements to compiler: merged instructions and fixes for ->
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1338 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1785,8 +1785,10 @@ p_shell (void)
|
||||
int child = fork ();
|
||||
if (child == 0)
|
||||
{ /* let the children go */
|
||||
execl (shell, shell, "-c", Yap_FileNameBuf, NIL);
|
||||
exit (TRUE);
|
||||
if (!execl (shell, shell, "-c", Yap_FileNameBuf, NIL)) {
|
||||
exit(-1);
|
||||
}
|
||||
exit(TRUE);
|
||||
}
|
||||
{ /* put the father on wait */
|
||||
int result = child < 0 ||
|
||||
|
||||
Reference in New Issue
Block a user