Skip to content

Commit

Permalink
Coverity CID 468118
Browse files Browse the repository at this point in the history
  • Loading branch information
matt335672 committed Feb 10, 2025
1 parent cb90458 commit 8769481
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sesman/sesexec_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ sesexec_start(struct pre_session_item *psi)
* in the environment */
char buff[64];
g_snprintf(buff, sizeof(buff), "%d", sck[1]);
g_setenv("EICP_FD", buff, 1);
if (g_setenv("EICP_FD", buff, 1) < 0)
{
LOG(LOG_LEVEL_ERROR, "Can't set EICP_FD [%s]",
g_get_strerror());
}

/* [Development] Log all file descriptors not marked cloexec
* other than stdin, stdout, stderr, and the EICP fd in sck[1].
Expand Down

0 comments on commit 8769481

Please sign in to comment.