From f4b090cbeb80f78415407ac510b4703e8cd94bd1 Mon Sep 17 00:00:00 2001 From: Cesar Douady Date: Sat, 6 Apr 2024 00:21:10 +0200 Subject: [PATCH] fix rare occurrences of catastrophic crash after ^C --- src/fd.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fd.hh b/src/fd.hh index 04c65866..1770229f 100644 --- a/src/fd.hh +++ b/src/fd.hh @@ -27,7 +27,6 @@ struct Fd { constexpr Fd( int fd_ ) : fd{fd_} { } /**/ Fd( int fd_ , bool no_std_ ) : fd{fd_} { if (no_std_) no_std() ; } // - constexpr Fd& operator=(int fd_) { fd = fd_ ; return *this ; } constexpr Fd& operator=(Fd const& fd_) { fd = fd_.fd ; return *this ; } constexpr Fd& operator=(Fd && fd_) { fd = fd_.fd ; fd_.detach() ; return *this ; } //