Skip to content
Snippets Groups Projects
Commit 6b5c6af6 authored by Matt Johnston's avatar Matt Johnston
Browse files

ignore return value from fcntl()

parent 3ccc36b3
Branches
Tags
No related merge requests found
...@@ -361,9 +361,10 @@ static void cli_session_cleanup(void) { ...@@ -361,9 +361,10 @@ static void cli_session_cleanup(void) {
/* Set std{in,out,err} back to non-blocking - busybox ash dies nastily if /* Set std{in,out,err} back to non-blocking - busybox ash dies nastily if
* we don't revert the flags */ * we don't revert the flags */
fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); /* Ignore return value since there's nothing we can do */
fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); (void)fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags);
fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); (void)fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags);
(void)fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags);
cli_tty_cleanup(); cli_tty_cleanup();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment