Documenter.jl: Running external commands asynchronously in `@example` blocks

Well, I found the solution! Although it is not entirely clear to me why, using a pipeline instead of directly setting the IO through run does the trick:

pinocchio = PipeBuffer()
listener = run(
    pipeline(
        `go-sendxmpp -n -p plopiplop -u pinocchio@localhost -l`,
        stdin = devnull, stdout = pinocchio, stderr = devnull
    ), wait = false
)