Function gnunet_sys::GNUNET_NETWORK_unix_precheck[][src]

pub unsafe extern "C" fn GNUNET_NETWORK_unix_precheck(un: *const sockaddr_un)

If services crash, they can leave a unix domain socket file on the disk. This needs to be manually removed, because otherwise both bind() and connect() for the respective address will fail. In this function, we test if such a left-over file exists, and if so, remove it (unless there is a listening service at the address).

@param un unix domain socket address to check