Skip to content

Commit

Permalink
REBASE clarify function name?
Browse files Browse the repository at this point in the history
I like the new function name, but I imagine that you'll want that
changed.
  • Loading branch information
gperciva committed Jan 27, 2024
1 parent 0b6130b commit 3476a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/noeintr_close.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ noeintr_close_init(void)

/* Check if ${sock} produces our magic cookie. Return 0 if it doesn't. */
static int
is_sock_still_open(int sock)
is_sock_still_open_and_magic(int sock)
{
uint8_t cookie_recv[MAGIC_COOKIE_LEN];

Expand Down Expand Up @@ -255,7 +255,7 @@ noeintr_close(int fd)
* referring to the same socket as s[1]; if so, the
* descriptor wasn't actually closed.
*/
switch (is_sock_still_open(fd)) {
switch (is_sock_still_open_and_magic(fd)) {
case -1:
/* Fatal error. */
goto err1;
Expand Down

0 comments on commit 3476a98

Please sign in to comment.