mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Teach fstat(1) about new location for socket state flags relating to
socket buffer state. Submitted by: rik Reminded by: le
This commit is contained in:
parent
4b32efacf3
commit
97b88fbf30
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130489
@ -852,10 +852,10 @@ socktrans(sock, i)
|
||||
char shoconn[4], *cp;
|
||||
|
||||
cp = shoconn;
|
||||
if (!(so.so_state & SS_CANTRCVMORE))
|
||||
if (!(so.so_rcv.sb_state & SBS_CANTRCVMORE))
|
||||
*cp++ = '<';
|
||||
*cp++ = '-';
|
||||
if (!(so.so_state & SS_CANTSENDMORE))
|
||||
if (!(so.so_snd.sb_state & SBS_CANTSENDMORE))
|
||||
*cp++ = '>';
|
||||
*cp = '\0';
|
||||
printf(" %s %lx", shoconn,
|
||||
|
Loading…
Reference in New Issue
Block a user