This repository was archived by the owner on Oct 24, 2022. It is now read-only.
Commit b109e4d
committed
Remove extranous calls to libc::close.
We were explicitly calling libc::close() on fds we were replacing; but
since they were stored as EventFds, which close themselves on drop, this
is unnecessary. Manually closing them is useless at best; at worse, if
there's a race condition and another thread opens an fd between the
manual close and the normal close on drop, we could have closed someone
else's fd.1 parent 5b8655c commit b109e4d
1 file changed
+0
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | 772 | | |
777 | 773 | | |
778 | 774 | | |
| |||
811 | 807 | | |
812 | 808 | | |
813 | 809 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | 810 | | |
819 | 811 | | |
820 | 812 | | |
| |||
827 | 819 | | |
828 | 820 | | |
829 | 821 | | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | 822 | | |
835 | 823 | | |
836 | 824 | | |
| |||
0 commit comments