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
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to