passfd.c on 64 bits system?

Dryice Liu <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On my FreeBSD6.0-amd64 box the test_passfd.py failed. The error
message looks like:

,----
| rfd 3 wfd 4
| x
| Traceback (most recent call last):
|   File "/usr/local/lib/python2.4/site-packages/scgi/test_passfd.py", line 46, in ?
|     fileObj = os.fdopen(fd, 'r')
| OSError: [Errno 9] Bad file descriptor
`----

I tried to add
,----
|     print fd
`----
in the script after the
,----
|     fd = passfd.recvfd(rfd)
`----
line and it prints random large numbers like 6316544.

I guess this is related to the differences of sizeof(long) on 32/64
bits machines but can't prove/fix it. Can somebody shine some light on
this? Thanks!

-- 
Dryice @ http://dryice.3322.org

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/sylvester-response.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.