Skip to content
Snippets Groups Projects
Commit b9533eca authored by tewk's avatar tewk
Browse files

This has to be at the bottom

parent 76a2db0b
No related branches found
No related tags found
No related merge requests found
......@@ -137,8 +137,6 @@ void * task_exec_thread ( void * arg )
/* create pipes to read child stdin, stdout, sterr */
init_parent_pipes ( task_start->pipes ) ;
setup_parent_pipes ( task_start->pipes ) ;
forward_io ( arg ) ;
#define FORK_ERROR -1
#define CHILD_PROCCESS 0
......@@ -202,6 +200,8 @@ void * task_exec_thread ( void * arg )
default: /*parent proccess */
task_start->exec_pid = cpid ;
setup_parent_pipes ( task_start->pipes ) ;
forward_io ( arg ) ;
waitpid ( cpid , & task_return_code , 0 ) ;
send_task_exit_msg ( task_return_code , task_start ) ;
break;
......
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