diff options
Diffstat (limited to 'pfinet/socket.c')
-rw-r--r-- | pfinet/socket.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pfinet/socket.c b/pfinet/socket.c index 82935a57..d56c1794 100644 --- a/pfinet/socket.c +++ b/pfinet/socket.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995,2000 Free Software Foundation, Inc. + Copyright (C) 1995,2000,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -41,6 +41,7 @@ sock_register (struct net_proto_family *fam) struct socket * sock_alloc (void) { + static ino_t nextino; /* locked by global_lock */ struct socket *sock; struct condition *c; @@ -55,6 +56,10 @@ sock_alloc (void) sock->refcnt = 1; sock->wait = (void *) c; + if (nextino == 0) + nextino = 2; + sock->st_ino = nextino++; + return sock; } |