impl Drop for FileDescriptor/OwnedFileDescriptor#84
impl Drop for FileDescriptor/OwnedFileDescriptor#84jkcoxson merged 3 commits intojkcoxson:masterfrom
Conversation
|
I've just created a test harness, do you mind running the tests to make sure everything still works? This code adds unsafe, so I want the afc test suite to be run beforehand. |
|
yeah it works just fine you wouldn't notice anything even if it's broken, because drop doesn't panic in here you should test the dropping, like get the fd out, and drop it and try to open it again, if it panics then it's good |
|
I'm not sure about the you can keep this pr open until you feel comfortable, or someone else confirms it's okay |
|
Do you mind upstreaming your changes so I can test it with the new harness? I can't do it myself since your branch is also master. |
|
I added a drop so we don't mutably borrow twice and tested it on the vphone test harness. If you agree with my change, we can merge this. |
|
ok |
No description provided.