@@ -28,7 +28,7 @@ typedef int64_t stdlib_pid;
28
28
// On Windows systems: create a new process
29
29
void process_create_windows (const char * cmd , const char * stdin_stream ,
30
30
const char * stdin_file , const char * stdout_file , const char * stderr_file ,
31
- stdlib_handle * handle , stdlib_pid * pid ) {
31
+ stdlib_pid * pid ) {
32
32
33
33
STARTUPINFO si ;
34
34
PROCESS_INFORMATION pi ;
@@ -37,7 +37,6 @@ void process_create_windows(const char* cmd, const char* stdin_stream,
37
37
FILE * stdin_fp = NULL ;
38
38
39
39
// Initialize null handle
40
- (* handle ) = NULL ;
41
40
(* pid ) = 0 ;
42
41
43
42
ZeroMemory (& si , sizeof (si ));
@@ -112,7 +111,6 @@ void process_create_windows(const char* cmd, const char* stdin_stream,
112
111
113
112
// Return the process handle for status queries
114
113
CloseHandle (pi .hThread ); // Close the thread handle
115
- (* handle ) = (stdlib_handle ) pi .hProcess ; // Return the process handle
116
114
(* pid ) = (stdlib_pid ) pi .dwProcessId ;
117
115
118
116
}
@@ -257,10 +255,9 @@ bool process_kill_unix(int pid) {
257
255
258
256
259
257
// On UNIX systems: just fork a new process. The command line will be executed from Fortran.
260
- void process_create_posix (stdlib_handle * handle , stdlib_pid * pid )
258
+ void process_create_posix (stdlib_pid * pid )
261
259
{
262
260
263
- (* handle ) = NULL ;
264
261
(* pid ) = (stdlib_pid ) fork ();
265
262
}
266
263
@@ -273,11 +270,11 @@ void process_create_posix(stdlib_handle* handle, stdlib_pid* pid)
273
270
// Create or fork process
274
271
void process_create (const char * cmd , const char * stdin_stream , const char * stdin_file ,
275
272
const char * stdout_file , const char * stderr_file ,
276
- stdlib_handle * handle , stdlib_pid * pid ) {
273
+ stdlib_pid * pid ) {
277
274
#ifdef _WIN32
278
- process_create_windows (cmd , stdin_stream , stdin_file , stdout_file , stderr_file , handle , pid );
275
+ process_create_windows (cmd , stdin_stream , stdin_file , stdout_file , stderr_file , pid );
279
276
#else
280
- process_create_posix (handle , pid );
277
+ process_create_posix (pid );
281
278
#endif // _WIN32
282
279
}
283
280
0 commit comments