Use pipe2 with O_CLOEXEC to not leak FDs and close the pipe completely after reading.
BUG: 378268
mart |
Plasma |
Use pipe2 with O_CLOEXEC to not leak FDs and close the pipe completely after reading.
BUG: 378268
Did not break anything here, but I don't have MD RAID.
According to the reporter this fixed the FD leak issue.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |