@@ -82,7 +82,7 @@ module subroutine sleep(millisec)
82
82
end subroutine sleep
83
83
84
84
! > 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)
86
86
! > The command and arguments
87
87
character (* ), intent (in ) :: cmd
88
88
! > 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
91
91
logical , optional , intent (in ) :: wait
92
92
! > Require collecting output
93
93
logical , optional , intent (in ) :: want_stdout, want_stderr
94
+ ! > The output process handler
95
+ type (process_type) :: process
94
96
95
97
process = process_open_args([cmd],wait,stdin,want_stdout,want_stderr)
96
98
97
99
end function process_open_cmd
98
100
99
101
! > 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)
101
103
! > The command and arguments
102
104
character (* ), intent (in ) :: args(:)
103
105
! > 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
106
108
logical , optional , intent (in ) :: wait
107
109
! > Require collecting output
108
110
logical , optional , intent (in ) :: want_stdout, want_stderr
111
+ ! > The output process handler
112
+ type (process_type) :: process
109
113
110
114
real (RTICKS) :: count_rate
111
115
logical :: asynchronous, collect_stdout, collect_stderr, has_stdin
0 commit comments