Mercurial > hg > truffle
comparison src/os/solaris/dtrace/jvm_dtrace.c @ 10978:e95fc50106cf
7178026: os::close can restart ::close but that is not a restartable syscall
Summary: Removed restart macros from all os:close calls on Solaris, Linux, MacOS X platforms.
Reviewed-by: dcubed, dholmes
author | rdurbin |
---|---|
date | Fri, 14 Jun 2013 07:46:22 -0700 |
parents | f95d63e2154a |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10969:a837fa3d3f86 | 10978:e95fc50106cf |
---|---|
120 RESTARTABLE(open(path, flag), ret); | 120 RESTARTABLE(open(path, flag), ret); |
121 return ret; | 121 return ret; |
122 } | 122 } |
123 | 123 |
124 static int file_close(int fd) { | 124 static int file_close(int fd) { |
125 int ret; | 125 return close(fd); |
126 RESTARTABLE(close(fd), ret); | |
127 return ret; | |
128 } | 126 } |
129 | 127 |
130 static int file_read(int fd, char* buf, int len) { | 128 static int file_read(int fd, char* buf, int len) { |
131 int ret; | 129 int ret; |
132 RESTARTABLE(read(fd, buf, len), ret); | 130 RESTARTABLE(read(fd, buf, len), ret); |