mirror of
https://github.com/clearml/dropbear
synced 2025-05-06 04:54:33 +00:00
ignore return value from fcntl()
This commit is contained in:
parent
3ccc36b3b7
commit
6b5c6af613
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user