https://twitter.com/2btc10000pizzas/status/1303768424133398528

No idea what could be going on here :/
{
    fs::path dirname = GetDataDir() / "lock_dir";
    const std::string lockname = ".lock";
#ifndef WIN32
    
    
    
    void (*old_handler)(int) = signal(SIGCHLD, SIG_DFL);
    
    
    
    int fd[2];
    BOOST_CHECK_EQUAL(socketpair(AF_UNIX, SOCK_STREAM, 0, fd), 0);
    pid_t pid = fork();
    if (!pid) {
        BOOST_CHECK_EQUAL(close(fd[1]), 0); 
        TestOtherProcess(dirname, lockname, fd[0]);
    }
    BOOST_CHECK_EQUAL(close(fd[0]), 0); 
#endif
    
    BOOST_CHECK_EQUAL(LockDirectory(dirname, lockname), false);
    fs::create_directories(dirname);
    
    BOOST_CHECK_EQUAL(LockDirectory(dirname, lockname, true), true);
    
    BOOST_CHECK_EQUAL(LockDirectory(dirname, lockname), true);