Skip to content
Snippets Groups Projects
Commit a6005597 authored by toole1's avatar toole1
Browse files

jack

git-svn-id: https://subversion.cs.illinois.edu/svn/cs225@3381 6fbd10e7-183d-0410-a318-cb416676e4f2
parent d4f5ca83
No related branches found
No related tags found
No related merge requests found
......@@ -471,6 +471,7 @@ bool fork_execute(F & executor)
// Fork
pid_t process_id;
process_id = fork();
EXIT_IF_ERROR(process_id < 0, "Could not fork application");
if (process_id == 0)
{
......@@ -480,7 +481,7 @@ bool fork_execute(F & executor)
// (which is important if we use valgrind ./proxy recursively)
return false; // previously exit(0);
}
else if (process_id > 0)
else // if (process_id > 0)
{
executor.parent();
......@@ -497,11 +498,6 @@ bool fork_execute(F & executor)
return true;
}
else // if (process_id < 0)
{
perror("Abort: " __FILE__ ":" STR(__LINE__));
exit(-1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment