This problem is related to bug#4488234 (see test in the bug report).
1. wrap empty byte array in byte buffer and write to pipe write end
2. use blocking mode to read in byte buffer which has 0 bytes remaining
on windows NT / windows 2000:
- read blocks
results on Solaris / Linux:
- read() does not block and returns -1 immediately
1. wrap empty byte array in byte buffer and write to pipe write end
2. use blocking mode to read in byte buffer which has 0 bytes remaining
on windows NT / windows 2000:
- read blocks
results on Solaris / Linux:
- read() does not block and returns -1 immediately
- relates to
-
JDK-4488234 Pipe.SourceChannel.read in blocking mode returns -1 when reading zero bytes
-
- Closed
-