Skip to content

Commit 0493b07

Browse files
author
Franziska Geiger
committed
Style check error fix + typeslot added to python.h
1 parent a70bebd commit 0493b07

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
#include "funcobject.h"
121121
#include "iterobject.h"
122122
#include "datetime.h"
123+
#include "typeslots.h"
123124

124125
// TODO: we must extend the refcounting behavior to support handles to managed objects
125126
#undef Py_DECREF

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ Object doExecute(String path, PSequence args) {
322322
}
323323
int size = args.getSequenceStorage().length();
324324
String[] cmd = new String[size];
325-
// We don't need the path variable because it's already in the array but I need to process it for CI gate
325+
// We don't need the path variable because it's already in the array
326+
// but I need to process it for CI gate
326327
cmd[0] = path;
327328
for (int i = 0; i < size; i++) {
328329
cmd[i] = GetItemDynamicNode.getUncached().execute(args.getSequenceStorage(), i).toString();
@@ -336,6 +337,13 @@ Object doExecute(String path, PSequence args) {
336337
while ((line = bfr.readLine()) != null) {
337338
stream.write(line.getBytes());
338339
}
340+
341+
try {
342+
pr.waitFor();
343+
} catch (InterruptedException e) {
344+
throw new IOException(e);
345+
}
346+
339347
throw new PythonExitException(this, pr.exitValue());
340348
} catch (IOException e) {
341349
throw raise(PythonErrorType.ValueError, "Could not execute script '%s'", e.getMessage());

0 commit comments

Comments
 (0)