[dependencies]
bitflags = "1.2"
-failure = { version = "0.1", default-features = false, features = [ "std" ] }
+anyhow = "1.0"
lazy_static = "1.4"
libc = "0.2"
nix = "0.16"
use std::sync::Arc;
-use failure::Error;
+use anyhow::Error;
use nix::errno::Errno;
use crate::io::seq_packet::SeqPacketSocket;
use std::task::{Context, Poll};
use std::{io, ptr};
-use failure::Error;
+use anyhow::Error;
use nix::sys::socket::{self, AddressFamily, SockAddr, SockFlag, SockType};
use crate::io::iovec::{IoVec, IoVecMut};
use std::os::unix::io::{FromRawFd, RawFd};
use std::{io, mem};
-use failure::{bail, format_err, Error};
+use anyhow::{bail, format_err, Error};
use lazy_static::lazy_static;
use libc::pid_t;
use nix::errno::Errno;
use std::io::{stderr, stdout, Write};
use std::os::unix::ffi::OsStrExt;
-use failure::{bail, format_err, Error};
+use anyhow::{bail, format_err, Error};
use nix::sys::socket::SockAddr;
#[macro_use]
use std::os::unix::ffi::OsStringExt;
use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
-use failure::{bail, Error};
+use anyhow::{bail, Error};
use libc::pid_t;
use crate::capability::Capabilities;
use std::io;
use std::os::unix::ffi::OsStrExt;
-use failure::Error;
+use anyhow::Error;
use super::PidFd;
use crate::capability::Capabilities;
use std::ffi::CString;
use std::os::unix::io::AsRawFd;
-use failure::Error;
+use anyhow::Error;
use nix::errno::Errno;
use nix::sys::stat;
use std::os::raw::{c_int, c_uint};
use std::{io, mem, ptr};
-use failure::Error;
+use anyhow::Error;
use nix::errno::Errno;
use crate::fork::forking_syscall;
use std::ffi::CString;
use std::os::raw::c_int;
-use failure::Error;
+use anyhow::Error;
use nix::errno::Errno;
use crate::lxcseccomp::ProxyMessageBuffer;