use AnyEvent;
use AnyEvent::Handle;
use AnyEvent::I3 qw(:all);
-use Try::Tiny; # not in core
use X11::XCB;
# install a dummy CHLD handler to overwrite the CHLD handler of AnyEvent / EV
# files are not written) and fallback to killing it
if ($coverage_testing) {
my $exited = 0;
- try {
+ eval {
say "Exiting i3 cleanly...";
i3("/tmp/nested-$display")->command('exit')->recv;
$exited = 1;
use List::Util qw(first);
use List::MoreUtils qw(lastval);
use Time::HiRes qw(sleep);
-use Try::Tiny;
use Cwd qw(abs_path);
use SocketActivation;
$socketpath ||= get_socket_path();
my $exited = 0;
- try {
+ eval {
say "Exiting i3 cleanly...";
i3($socketpath)->command('exit')->recv;
$exited = 1;