summaryrefslogtreecommitdiff
path: root/libjava/posix-threads.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 04:23:31 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-21 04:23:31 +0000
commit589438074591f19ca383985552d6b75cb33c5588 (patch)
treec5d3ce7782681a64bb2752b4c6a1a0f42e3b24f5 /libjava/posix-threads.cc
parente3c541f009be650d66aef14d6df32dae184e0f08 (diff)
downloadgcc-589438074591f19ca383985552d6b75cb33c5588.tar.gz
* posix-threads.cc (_Jv_ThreadInterrupt): Re-enable interrupt of
blocking IO via pthread_kill(). * java/io/natFileDescriptorPosix.cc (write (jint)): Check for thread interrupted status flag only if ::write returned an error. (write (jbyteArray, jint, jint): Likewise. (read (jint)): Likewise. (read (jbyteArray, jint, jint): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/posix-threads.cc')
-rw-r--r--libjava/posix-threads.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/posix-threads.cc b/libjava/posix-threads.cc
index 21f61370df2..10cfcbae9b3 100644
--- a/libjava/posix-threads.cc
+++ b/libjava/posix-threads.cc
@@ -263,7 +263,7 @@ _Jv_ThreadInterrupt (_Jv_Thread_t *data)
data->thread_obj->interrupt_flag = true;
// Interrupt blocking system calls using a signal.
-// pthread_kill (data->thread, INTR);
+ pthread_kill (data->thread, INTR);
pthread_cond_signal (&data->wait_cond);