aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-09-18 12:02:50 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-09-18 12:02:50 +0200
commit092ee246277c76cd80f34088911419058e8b0f2f (patch)
treeba0005dc8c0f5bee682d81e753f44341fad7a4d0 /src
parenta25c022af3fa0a35be406942869edae1bdff2cf8 (diff)
parentc6a0f4c393c9704821bda973db1bf4c449354b32 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src')
-rw-r--r--src/libstore/remote-store.cc2
-rw-r--r--src/libutil/json.hh2
-rw-r--r--src/libutil/util.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index e38fe49a7..89b699414 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -228,7 +228,7 @@ struct ConnectionHandle
~ConnectionHandle()
{
- if (!daemonException && std::uncaught_exception()) {
+ if (!daemonException && std::uncaught_exceptions()) {
handle.markBad();
debug("closing daemon connection because of an exception");
}
diff --git a/src/libutil/json.hh b/src/libutil/json.hh
index 02a39917f..45a22f011 100644
--- a/src/libutil/json.hh
+++ b/src/libutil/json.hh
@@ -170,7 +170,7 @@ public:
~JSONPlaceholder()
{
- assert(!first || std::uncaught_exception());
+ assert(!first || std::uncaught_exceptions());
}
template<typename T>
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 98a7ea397..89a75b3d4 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -1196,7 +1196,7 @@ void _interrupted()
/* Block user interrupts while an exception is being handled.
Throwing an exception while another exception is being handled
kills the program! */
- if (!interruptThrown && !std::uncaught_exception()) {
+ if (!interruptThrown && !std::uncaught_exceptions()) {
interruptThrown = true;
throw Interrupted("interrupted by the user");
}