mirror of
https://github.com/matrix-construct/construct
synced 2024-06-02 10:08:56 +02:00
ircd::fs: Translate boost to std for exceptions out of stdin::readline.
This commit is contained in:
parent
e686f0fafe
commit
638a629151
|
@ -421,6 +421,7 @@ ircd::fs::support::aio_fdsync
|
|||
|
||||
ircd::string_view
|
||||
ircd::fs::stdin::readline(const mutable_buffer &buf)
|
||||
try
|
||||
{
|
||||
boost::asio::posix::stream_descriptor fd
|
||||
{
|
||||
|
@ -450,6 +451,11 @@ ircd::fs::stdin::readline(const mutable_buffer &buf)
|
|||
data(buf), size_t(is.gcount())
|
||||
};
|
||||
}
|
||||
catch(boost::system::system_error &e)
|
||||
{
|
||||
throw_system_error(e);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
//
|
||||
// tty
|
||||
|
|
Loading…
Reference in a new issue