Help sharing texture names in linux! Please Help!

Hi,
I am trying to share texture names between 2 contexts in linux (redhat 9 + nVidia Quadro)
for a couple fo days now without SUCCESS and i dont get any errors! i cant figure out whats wrong.

i wrote a small sample to demsontrate the problem, it creates 2 windows 2 shared contexts, and a texture in each context, the strange thing is that both textures get the same name “1” which would not happen if sharing was working! please can anyone make the sample program work and advise me about my stupid mistake??

the small sample program is at: http://www.dvoyka.com/wwwfivemagics2/share.c

please help!