Misleading error handling: utils_create_pid_file() should return 0 on success
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 18 Dec 2014 01:45:17 +0000 (20:45 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 5 Jan 2015 21:20:35 +0000 (16:20 -0500)
commite205d79b4dc22178644fa6f3d0a4eae86df36e73
tree36b8703c858aed177c1377140172e9d895d08ea3
parent8f7a281b62b77af66d5f24a3aade40bcd021d3ec
Misleading error handling: utils_create_pid_file() should return 0 on success

fprintf returns a positive value on success, which is used as return
value for utils_create_pid_file(), which is odd. This is in preparation
for main() refactoring.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/utils.c
This page took 0.025457 seconds and 4 git commands to generate.