[sheepdog] [PATCH] collie: cleanup callbacks of collie command when they send header only requests
Liu Yuan
namei.unix at gmail.com
Fri Jul 27 08:10:53 CEST 2012
On 07/27/2012 02:02 PM, Yunkai Zhang wrote:
> In fact, my fist inner version return EXIT_XXX in send_light_req(),
> but I found that EXIT_xxx code defined in exits.h, they seems not
> appropriate for library functions (compare to exe_req()/send_req() and
> other system calls).Library functions usually return errno instead of
> EXIT code.
Then simply return -1 for error case. I think we already use eprintf to
print error message, it is fine for now to only return EXIT_FAILURE for
all collie command.
Thanks,
Yuan
More information about the sheepdog
mailing list