[PATCH] Don't leak file descriptors when spawning new workers
authorKevin Ottens <kevin.ottens@enioka.com>
Fri, 5 Jan 2024 10:51:49 +0000 (11:51 +0100)
committerAurélien COUDERC <coucouf@debian.org>
Sat, 12 Apr 2025 22:42:51 +0000 (00:42 +0200)
commita967eec6b573d9bec825b0628339bce800df6b49
tree01f7df4a3cf7b53772a841ead03102af908f8ab6
parent0ab27001eb0fddefe8e40a6eba5b20bad0deb182
[PATCH] Don't leak file descriptors when spawning new workers

By default we inherit file descriptors from the parent in
the worker process. This is a leak of resources since the
worker won't be able to do anything with them. Also, in
the case of CIFS this causes locks which might lead to bad
surprises in the parent process.

Gbp-Pq: Name fix_cifs_file_locks.patch
src/kioslave/kioslave.cpp