Skip to content

Commit

Permalink
fix rare occurrences of catastrophic crash after ^C
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-douady committed Apr 5, 2024
1 parent 1155c87 commit f4b090c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fd.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ; }
//
Expand Down

0 comments on commit f4b090c

Please sign in to comment.