Fix: wrong parameter to fcntl in pipe_set_flag
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 13 Nov 2017 23:14:49 +0000 (18:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 23:14:49 +0000 (18:14 -0500)
commit699f87380dea728a9548fe730ffe178c668925f3
treeeb9736c2115cf29ec711f030436505f77bc17aff
parent838193da4897e62cebf4ef2090ba7224cbdad1da
Fix: wrong parameter to fcntl in pipe_set_flag

Depending on the flags passed, fcntl must be called with F_SETFD or
F_SETFL. This fix checks the flag passed and ensure it is valid and
calls fcntl with the right parameter.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/pipe.c
This page took 0.02534 seconds and 4 git commands to generate.