@@ -82,7 +82,7 @@ module subroutine sleep(millisec)
8282 end subroutine sleep
8383
8484 ! > Open a new process
85- module type (process_type) function process_open_cmd(cmd,wait,stdin,want_stdout,want_stderr) result(process)
85+ module function process_open_cmd (cmd ,wait ,stdin ,want_stdout ,want_stderr ) result(process)
8686 ! > The command and arguments
8787 character (* ), intent (in ) :: cmd
8888 ! > Optional character input to be sent to the process via pipe
@@ -91,13 +91,15 @@ module type(process_type) function process_open_cmd(cmd,wait,stdin,want_stdout,w
9191 logical , optional , intent (in ) :: wait
9292 ! > Require collecting output
9393 logical , optional , intent (in ) :: want_stdout, want_stderr
94+ ! > The output process handler
95+ type (process_type) :: process
9496
9597 process = process_open_args([cmd],wait,stdin,want_stdout,want_stderr)
9698
9799 end function process_open_cmd
98100
99101 ! > Open a new process
100- module type (process_type) function process_open_args(args,wait,stdin,want_stdout,want_stderr) result(process)
102+ module function process_open_args (args ,wait ,stdin ,want_stdout ,want_stderr ) result(process)
101103 ! > The command and arguments
102104 character (* ), intent (in ) :: args(:)
103105 ! > Optional character input to be sent to the process via pipe
@@ -106,6 +108,8 @@ module type(process_type) function process_open_args(args,wait,stdin,want_stdout
106108 logical , optional , intent (in ) :: wait
107109 ! > Require collecting output
108110 logical , optional , intent (in ) :: want_stdout, want_stderr
111+ ! > The output process handler
112+ type (process_type) :: process
109113
110114 real (RTICKS) :: count_rate
111115 logical :: asynchronous, collect_stdout, collect_stderr, has_stdin
0 commit comments