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>
Wed, 15 Nov 2017 23:37:01 +0000 (18:37 -0500)
commita719a710f552c8d5757f2710778f27cb8dec4233
tree773c751bfb88679a21a3147a10f69537cad7c499
parent826518624975825fdeabb0d05186959a80b9ec65
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.024744 seconds and 4 git commands to generate.