mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8129526: Solaris: clean up another remnant of interruptible I/O
Reviewed-by: fparain, dcubed
This commit is contained in:
parent
1bdb2e37b2
commit
fee39c63e6
15 changed files with 18 additions and 102 deletions
|
@ -1777,7 +1777,6 @@ void os::print_signal_handlers(outputStream* st, char* buf, size_t buflen) {
|
|||
print_signal_handler(st, SIGPIPE, buf, buflen);
|
||||
print_signal_handler(st, SIGXFSZ, buf, buflen);
|
||||
print_signal_handler(st, SIGILL , buf, buflen);
|
||||
print_signal_handler(st, INTERRUPT_SIGNAL, buf, buflen);
|
||||
print_signal_handler(st, SR_signum, buf, buflen);
|
||||
print_signal_handler(st, SHUTDOWN1_SIGNAL, buf, buflen);
|
||||
print_signal_handler(st, SHUTDOWN2_SIGNAL , buf, buflen);
|
||||
|
@ -3345,7 +3344,6 @@ void os::run_periodic_checks() {
|
|||
}
|
||||
|
||||
DO_SIGNAL_CHECK(SR_signum);
|
||||
DO_SIGNAL_CHECK(INTERRUPT_SIGNAL);
|
||||
}
|
||||
|
||||
typedef int (*os_sigaction_t)(int, const struct sigaction *, struct sigaction *);
|
||||
|
@ -3391,10 +3389,6 @@ void os::Bsd::check_signal_handler(int sig) {
|
|||
jvmHandler = (address)user_handler();
|
||||
break;
|
||||
|
||||
case INTERRUPT_SIGNAL:
|
||||
jvmHandler = CAST_FROM_FN_PTR(address, SIG_DFL);
|
||||
break;
|
||||
|
||||
default:
|
||||
if (sig == SR_signum) {
|
||||
jvmHandler = CAST_FROM_FN_PTR(address, (sa_sigaction_t)SR_handler);
|
||||
|
@ -3913,9 +3907,6 @@ int os::available(int fd, jlong *bytes) {
|
|||
if (::fstat(fd, &buf) >= 0) {
|
||||
mode = buf.st_mode;
|
||||
if (S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) {
|
||||
// XXX: is the following call interruptible? If so, this might
|
||||
// need to go through the INTERRUPT_IO() wrapper as for other
|
||||
// blocking, interruptible calls in this file.
|
||||
int n;
|
||||
if (::ioctl(fd, FIONREAD, &n) >= 0) {
|
||||
*bytes = n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue