[uClibc]popen fail to return in ppc environment

shaowei dai dshaowei at rfnetech.com
Wed Jun 26 10:33:16 UTC 2002


Hi, all:

I'm using the latest cvs version uclibc for powerpc environment. When i
compile pcmcia_cs package against it, it can run up to modprobe without
problem. The symptom is after loading the corresponding module, i find
that /var/run/stab still tells me "Socket 0: empty". After tracing down,
i found out that it is due to a function call in cardmgr,
popen(cmd,"r"), never return. This call is responsible for loading
driver modules. Because cardmgr blocks here, there is no write to the
stab file. 

When i switch to hardhat platform to do the same test, it does return. 

What interesting is that although 'popen' doesn't return, the loading of
modules success. As i can assure this by issuing 'lsmod' to check.

Doesn't anybody know what maybe the cause of this strange behavior of
'popen'? 

Any input will be appreciated!
David





More information about the uClibc mailing list