anchor.diff:      %% Wait for read
       eagain = read_nif(R, 3),
       0 = select_nif(R,?ERL_NIF_SELECT_READ,R,null,Ref),
  -    [] = flush(),
  +    [] = flush(0),
       ok = write_nif(W, <<"hej">>),
       [{select, R, Ref, ready_input}] = flush(),
       0 = select_nif(R,?ERL_NIF_SELECT_READ,R,self(),Ref2),
  
positive.code:     [{fd_resource_stop, W_ptr, _}] = flush(),
      {1, {W_ptr,_}} = last_fd_stop_call(),
      true = is_closed_nif(W),
      [] = flush(),
      0 = select_nif(R,?ERL_NIF_SELECT_READ,R,self(),Ref),
      [{select, R, Ref, ready_input}] = flush(),
      eof = read_nif(R,1),
  
negative.code:                              exit
                       end),
      [{Pid, done, R_ptr, Mon1},
       {monitor_resource_down, R_ptr, Pid, Mon2}] = flush(2),
      compare_monitors_nif(Mon1, Mon2),
      {R_ptr, _, 1} = last_resource_dtor_call(),
      ok.
  