apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@rkbloom.net>
Subject Re: cvs commit: apr/test testsock.c
Date Wed, 02 Jun 2004 12:46:15 GMT


On 2 Jun 2004 jorton@apache.org wrote:

> jorton      2004/06/02 01:27:43
>
>   Modified:    test     testsock.c
>   Log:
>   * test/testsock.c (setup_socket): Return NULL if bind fails, fixing
>   test suite hang if port 8021 is in use; all callers updated. (come
>   back longjmp, all is forgiven).

No, you were right the first time with regard to longjmp.  The trade-off
is that while using longjmp makes it easier to ignore the failure case, it
also means you _can't_ cleanup after yourself in the case of an error.

Ryan


Mime
View raw message