Mercurial > hg > truffle
comparison src/os/bsd/vm/os_bsd.inline.hpp @ 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 | f2110083203d |
children | 6c9332549827 ce8f6bb717c9 |
comparison
equal
deleted
inserted
replaced
10969:a837fa3d3f86 | 10978:e95fc50106cf |
---|---|
176 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); | 176 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); |
177 return res; | 177 return res; |
178 } | 178 } |
179 | 179 |
180 inline int os::close(int fd) { | 180 inline int os::close(int fd) { |
181 RESTARTABLE_RETURN_INT(::close(fd)); | 181 return ::close(fd); |
182 } | 182 } |
183 | 183 |
184 inline int os::socket_close(int fd) { | 184 inline int os::socket_close(int fd) { |
185 RESTARTABLE_RETURN_INT(::close(fd)); | 185 return ::close(fd); |
186 } | 186 } |
187 | 187 |
188 inline int os::socket(int domain, int type, int protocol) { | 188 inline int os::socket(int domain, int type, int protocol) { |
189 return ::socket(domain, type, protocol); | 189 return ::socket(domain, type, protocol); |
190 } | 190 } |