ircd: squelch write(2) warning differently
This commit is contained in:
parent
02831b6f65
commit
48c6d0f56c
1 changed files with 1 additions and 7 deletions
|
@ -175,13 +175,7 @@ print_startup(int pid)
|
||||||
* -- jilles */
|
* -- jilles */
|
||||||
if (!server_state_foreground)
|
if (!server_state_foreground)
|
||||||
{
|
{
|
||||||
if(write(0, ".", 1) < 1)
|
(void) write(0, ".", 1);
|
||||||
/* The circumstances in which this could fail are pretty implausible.
|
|
||||||
* However, this shuts GCC up about warning the result of write is unused,
|
|
||||||
* and is "standards compliant" behaviour.
|
|
||||||
* --Elizabeth
|
|
||||||
*/
|
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
if (dup2(1, 0) == -1)
|
if (dup2(1, 0) == -1)
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in a new issue