Fixes for handling of handle inheritance.
This commit is contained in:
@@ -461,8 +461,10 @@ void uninheritStream(JNIEnv *env, DWORD stdInputHandle, jobject result) {
|
|||||||
}
|
}
|
||||||
boolean ok = SetHandleInformation(streamHandle, HANDLE_FLAG_INHERIT, 0);
|
boolean ok = SetHandleInformation(streamHandle, HANDLE_FLAG_INHERIT, 0);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
|
if (GetLastError() != ERROR_INVALID_PARAMETER && GetLastError() != ERROR_INVALID_HANDLE) {
|
||||||
mark_failed_with_errno(env, "could not change std handle", result);
|
mark_failed_with_errno(env, "could not change std handle", result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL
|
JNIEXPORT void JNICALL
|
||||||
|
|||||||
Reference in New Issue
Block a user