my first e-mail
Andrea Galimberti
godel@tin.it
Fri, 15 Dec 2000 12:14:05 +0100
Hello,
I'm new in this mailing list so I hope you'll accept a pair of stupid
questions:
1 - In http://www.beowulf.org/software/bproc.html there are some instructions
to subscribe the beowulf-bproc mailing list sending a mail to:
beowulf-bproc-request@beowulf.gsfc.nasa.gov, but this address doesn't exists.
Is beowulf-bproc the same (maybe the older version) of this list? If not,
are the two lists related in some way?
2 - I'm using bproc-0.2.1. There are some newer versions?
Now the "big" question :)
I'm using bproc-0.2.1 with my two linux machines (for "experimental"
purposes).
I'm developing an application that rforks on every active node. When a node
dies/a new one becomes up the application should close connection/rfork
and activate a new connection. To do so it periodically checks active nodes
with bproc_nodeup(), but this don't work!
Checking the code in bproc.c I found the code:
int bproc_nodeup(int num) {
num = map_user_node(num);
if (num == -1) return 0;
/* XXX There needs to be a way to refresh the node map ... */
return nodemap[num];
}
To refresh the node map at every call of bproc_nodeup() I modified it in this
way:
int bproc_nodeup(int num) {
num = map_user_node(num);
if (num == -1) return 0;
/* Refresh the node map ... */
read_config("/var/run/bproc");
return nodemap[num];
}
This work well for my application.
Do you think it's correct? There is a better way to solve this problem?
THANK YOU
Andrea Galimberti