mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 21:34:52 +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
|
@ -2302,7 +2302,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);
|
||||
|
@ -4496,7 +4495,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 *);
|
||||
|
@ -4542,10 +4540,6 @@ void os::Linux::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);
|
||||
|
@ -5130,9 +5124,6 @@ int os::available(int fd, jlong *bytes) {
|
|||
if (::fstat64(fd, &buf64) >= 0) {
|
||||
mode = buf64.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