< prev index next >
src/jdk.jpackage/unix/native/libapplauncher/PosixPlatform.cpp
Print this page
*** 93,103 ****
return result;
}
void PosixPlatform::SetCurrentDirectory(TString Value) {
! chdir(StringToFileSystemString(Value));
}
Module PosixPlatform::LoadLibrary(TString FileName) {
return dlopen(StringToFileSystemString(FileName), RTLD_LAZY);
}
--- 93,103 ----
return result;
}
void PosixPlatform::SetCurrentDirectory(TString Value) {
! int ignored = chdir(StringToFileSystemString(Value));
}
Module PosixPlatform::LoadLibrary(TString FileName) {
return dlopen(StringToFileSystemString(FileName), RTLD_LAZY);
}
*** 210,222 ****
--- 210,224 ----
exit(1);
}
} else if (count == 0) {
// break;
} else {
+ /*
if (buffer[count - 1] == EOF) {
buffer[count - 1] = '\0';
}
+ */
std::list<TString> output = Helpers::StringToArray(buffer);
FOutput.splice(FOutput.end(), output, output.begin(), output.end());
result = true;
}
*** 308,318 ****
return FChildPID;
}
void PosixProcess::SetInput(TString Value) {
if (FInputHandle != 0) {
! write(FInputHandle, Value.data(), Value.size());
}
}
std::list<TString> PosixProcess::GetOutput() {
ReadOutput();
--- 310,320 ----
return FChildPID;
}
void PosixProcess::SetInput(TString Value) {
if (FInputHandle != 0) {
! ssize_t ignored = write(FInputHandle, Value.data(), Value.size());
}
}
std::list<TString> PosixProcess::GetOutput() {
ReadOutput();
< prev index next >