| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Wrong UIDs reported in /proc/net/tcp |
| From: | David Stevens <dlstevens@xxxxxxxxxx> |
| Date: | Thu, 18 Nov 2004 14:16:33 -0800 |
| Cc: | "Chad N. Tindel" <chad@xxxxxxxxxx>, linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, netdev-bounce@xxxxxxxxxxx, Stephen Hemminger <shemminger@xxxxxxxx> |
| In-reply-to: | <20041118220719.GA9890@xxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Isn't the read itself atomic?
Assuming so, another solution would be to stat/fstat the file, add some to
it to account
for growth, allocate a buffer that big and read the whole thing in one
shot. Then the
results should be self-consistent.
+-DLS
|
| Previous by Date: | Re: [PATCH] sctp/socket: fix printk arg. type, David S. Miller |
|---|---|
| Next by Date: | Re: [patch netdev-2.6] vlan_dev: return 0 on vlan_dev_change_mtu success, David S. Miller |
| Previous by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, Herbert Xu |
| Next by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |