Skip to content

Commit 0000534

Browse files
authored
Update PluginRegistry.cpp
1 parent 06ad3a7 commit 0000534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/AST/PluginRegistry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ ssize_t LoadedExecutablePlugin::PluginProcess::read(void *buf,
207207

208208
while (bytesToRead > 0) {
209209
ssize_t readingSize = std::min(ssize_t(INT32_MAX), bytesToRead);
210-
ssize_t readSize = ::read(inputFileDescriptor, ptr, readingSize);
210+
ssize_t readSize = ::read(input, ptr, readingSize);
211211
if (readSize <= 0) {
212212
// 0: EOF (the plugin exited?), -1: error (e.g. broken pipe.)
213213
// FIXME: Mark the plugin 'stale' and relaunch later.
@@ -245,7 +245,7 @@ ssize_t LoadedExecutablePlugin::PluginProcess::write(const void *buf,
245245

246246
while (bytesToWrite > 0) {
247247
ssize_t writingSize = std::min(ssize_t(INT32_MAX), bytesToWrite);
248-
ssize_t writtenSize = ::write(outputFileDescriptor, ptr, writingSize);
248+
ssize_t writtenSize = ::write(output, ptr, writingSize);
249249
if (writtenSize <= 0) {
250250
// -1: error (e.g. broken pipe,)
251251
// FIXME: Mark the plugin 'stale' and relaunch later.

0 commit comments

Comments
 (0)