]> sourceware.org Git - lvm2.git/commit
Never ever use uninitialised descriptors if pipe() fails
authorMilan Broz <mbroz@redhat.com>
Thu, 11 Aug 2011 12:57:10 +0000 (12:57 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 11 Aug 2011 12:57:10 +0000 (12:57 +0000)
commit48aa36a654a5e8d3c861dd9111ff68094c1417f5
tree2ac4f13f0183ead1c01af34c478a2b699bb71ce0
parent9c3fd6948b816d6d3423e5413cade1af35eb3529
Never ever use uninitialised descriptors if pipe() fails
(because of maximum open count fd exceeded or so).

Better return busy message, so even clients fail in more controlled way.

Without patch,  clvmd crashes with various strange backtraces
if under heavy load of connection requests.

https://bugzilla.redhat.com/show_bug.cgi?id=698393
https://bugzilla.redhat.com/show_bug.cgi?id=697945

(It still can OOM but that's different issue.)
WHATS_NEW
daemons/clvmd/clvmd.c
This page took 0.037104 seconds and 5 git commands to generate.