https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129095

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #0)

[...snip...]

> The wording of the events could be improved here:
> 
> * At the 'socket' call:
>     (1) when 'socket' fails
>   would be better as
>     (1) when 'socket' fails (returning -1)
>   specifying the return value, or even change the "when" to "if":
>     (1) if 'socket' fails (returning -1)
> * At the conditional:
>     (2) following 'false' branch (when 'server_fd != 0')...
>   would be better as
>     (2) following 'false' branch (since 'server_fd != 0')...
>   since on this path we know the value of server_fd and it's implied by
> event (1).
>   Possibly even:
>     (2) 'server_fd' == '-1' from (1)" or somesuch
>     (3) following 'false' branch (since 'server_fd != 0')...

I've split the above out to bug 129274.

> * At the 'bind' call on this path:
>     (4) ⚠️  'server_fd' could be invalid
>   could be:
>     (4) ⚠️  'server_fd' is invalid (-1)
>   or somesuch

[...snip...]

> In event (4), looks like this comes from fd_use_without_check::emit; we can
> probably make the wording more precise for the "known invalid" case, rather
> than just "could be invalid"

I believe the vague wording above is the only remaining issue here (that hasn't
been split out to a different bug).

Reply via email to