mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
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 @@ rewrite:
|
||||
goto reread;
|
||||
goto rewrite;
|
||||
done:
|
||||
(void)shutdown(rem, 1);
|
||||
(void)shutdown(rem, SHUT_WR);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user