Spell 1 as SHUT_WR in argument to shutdown(2).
This commit is contained in:
parent
bf6b7d84fd
commit
e8b92d55b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146078
@ -222,7 +222,7 @@ main(int argc, char *argv[])
|
||||
err(1, "fork");
|
||||
}
|
||||
else
|
||||
(void)shutdown(rem, 1);
|
||||
(void)shutdown(rem, SHUT_WR);
|
||||
|
||||
(void)ioctl(rfd2, FIONBIO, &one);
|
||||
(void)ioctl(rem, FIONBIO, &one);
|
||||
@ -277,7 +277,7 @@ reread: errno = 0;
|
||||
goto reread;
|
||||
goto rewrite;
|
||||
done:
|
||||
(void)shutdown(rem, 1);
|
||||
(void)shutdown(rem, SHUT_WR);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user