Or use ```read_stream_type``` instead of ```read_cmd_fd```.