Add derive Clone to high_level::Event#14
Conversation
|
@Foosec please be aware that cloning the fd is fine, but closing the fd will invalidate it for the any other clones of the |
I noticed that in the So implementing That said, using |
|
Thank you so much for mentioning that. I've actually been revisiting this project since tuesday and I've been going crazy because I can't read the content in the openned files even with |
|
Hello! Sorry i was a bit out of commision the last few days, Trying to use FAN_OPEN_PERM for scanning the file (opening it again in my process whilst holding the initial event blocked) that the FD that comes from the new open() call is the same as the initial one, it seems to me that its caused by closing the file descriptor in read_event() which makes it invalid (or rather re used) for the subsequent send_response |
|
Hi Foosec, Yeah, I was actually thinking about this when I was writing #15 . That should now keep the handle open the appropriate amount of time |
|
Ah nice! I read the PR just seems i did it very badly :) |
All the members already implement Clone and it shouldn't be problematic to copy a FD