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

This needs more work, reverting to previous version

parent 4faba127
No related branches found
No related tags found
No related merge requests found
...@@ -483,9 +483,10 @@ void * task_exec_thread ( void * arg ) ...@@ -483,9 +483,10 @@ void * task_exec_thread ( void * arg )
/* create pipes to read child stdin, stdout, sterr */ /* create pipes to read child stdin, stdout, sterr */
init_parent_pipes ( task_start->pipes ) ; init_parent_pipes ( task_start->pipes ) ;
/*
setup_parent_pipes ( task_start->pipes ) ; setup_parent_pipes ( task_start->pipes ) ;
forward_io ( arg ) ; forward_io ( arg ) ;
*/
#define FORK_ERROR -1 #define FORK_ERROR -1
#define CHILD_PROCCESS 0 #define CHILD_PROCCESS 0
...@@ -544,6 +545,8 @@ void * task_exec_thread ( void * arg ) ...@@ -544,6 +545,8 @@ void * task_exec_thread ( void * arg )
_exit ( SLURM_SUCCESS ) ; _exit ( SLURM_SUCCESS ) ;
default: /*parent proccess */ default: /*parent proccess */
setup_parent_pipes ( task_start->pipes ) ;
forward_io ( arg ) ;
task_start->exec_pid = cpid ; task_start->exec_pid = cpid ;
waitpid ( cpid , NULL , 0 ) ; waitpid ( cpid , NULL , 0 ) ;
} }
......
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