The command fd needs to be blocking.