|
50 | 50 | import static com.oracle.graal.python.runtime.PosixConstants.LOCK_NB;
|
51 | 51 | import static com.oracle.graal.python.runtime.PosixConstants.LOCK_SH;
|
52 | 52 | import static com.oracle.graal.python.runtime.PosixConstants.LOCK_UN;
|
| 53 | +import static com.oracle.graal.python.runtime.PosixConstants.MAP_ANONYMOUS; |
53 | 54 | import static com.oracle.graal.python.runtime.PosixConstants.O_ACCMODE;
|
54 | 55 | import static com.oracle.graal.python.runtime.PosixConstants.O_APPEND;
|
55 | 56 | import static com.oracle.graal.python.runtime.PosixConstants.O_CREAT;
|
|
62 | 63 | import static com.oracle.graal.python.runtime.PosixConstants.O_TMPFILE;
|
63 | 64 | import static com.oracle.graal.python.runtime.PosixConstants.O_TRUNC;
|
64 | 65 | import static com.oracle.graal.python.runtime.PosixConstants.O_WRONLY;
|
65 |
| -import static com.oracle.graal.python.runtime.PosixConstants.MAP_ANONYMOUS; |
66 | 66 | import static com.oracle.graal.python.runtime.PosixConstants.PROT_EXEC;
|
67 | 67 | import static com.oracle.graal.python.runtime.PosixConstants.PROT_NONE;
|
68 | 68 | import static com.oracle.graal.python.runtime.PosixConstants.PROT_READ;
|
@@ -1537,6 +1537,7 @@ public long[] waitpid(long pid, int options) throws PosixException {
|
1537 | 1537 | throw posixException(OSErrorEnum.ESRCH);
|
1538 | 1538 | }
|
1539 | 1539 | } catch (InterruptedException e) {
|
| 1540 | + Thread.currentThread().interrupt(); |
1540 | 1541 | throw posixException(OSErrorEnum.EINTR);
|
1541 | 1542 | }
|
1542 | 1543 | }
|
@@ -1836,6 +1837,7 @@ private void execvInternal(String[] cmd) throws IOException {
|
1836 | 1837 | try {
|
1837 | 1838 | pr.waitFor();
|
1838 | 1839 | } catch (InterruptedException e) {
|
| 1840 | + Thread.currentThread().interrupt(); |
1839 | 1841 | throw new IOException(e);
|
1840 | 1842 | }
|
1841 | 1843 | // TODO python-specific, missing location
|
|
0 commit comments