comparison cli-session.c @ 1258:854f39ff5105

ignore return value from fcntl()
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 23:03:43 +0800
parents bf626d259eb1
children 0c47d97aa9d5
comparison
equal deleted inserted replaced
1257:8291fc87273e 1258:854f39ff5105
359 359
360 kill_proxy_command(); 360 kill_proxy_command();
361 361
362 /* Set std{in,out,err} back to non-blocking - busybox ash dies nastily if 362 /* Set std{in,out,err} back to non-blocking - busybox ash dies nastily if
363 * we don't revert the flags */ 363 * we don't revert the flags */
364 fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); 364 /* Ignore return value since there's nothing we can do */
365 fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); 365 (void)fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags);
366 fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); 366 (void)fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags);
367 (void)fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags);
367 368
368 cli_tty_cleanup(); 369 cli_tty_cleanup();
369 370
370 } 371 }
371 372