rockytriton/LLD

Read on file descriptor permanently hangs

Opened this issue · 0 comments

int len = sys_read(fd, buffer, sizeof(buffer));

The file descriptor for the card[number] is set to be read in the function mydrm_handle_event; yet when it is passed, and the respective read operation is called on it, the entire execution hangs indefinitely, what could cause this, as the card device was being read previously via the mydrm_open in src/drmlist/drmlist.c; I thought maybe the file descriptors cursor may have to of been re-positioned to the beginning, but this proved unsuccessful.

Any suggestions?