~beanstalkd/beanstalkd/trunk

Viewing all changes in revision 680.

  • Committer: Jens Rantil
  • Author(s): Isaac Jurado
  • Date: 2018-08-19 18:24:14 UTC
  • Revision ID: git-v1:b5a6f7a23a368ffb31fbf48cdffe95541166d3fa
Properly catch and report getaddrinfo() errors

The getaddrinfo() function does not behave like a system call.  In particular,
the only successful return value is zero; any other value should be considered a
failure, not only -1.

This commit fixes a segfault caused by an invalid value of the "-l" command line
option.

Closes #254 and fixes #253.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: