Package: python-eunuchs
Version: 20050320.1
Severity: normal

For whatever reason the sendmsg wrapper cannot be used with unix domain
sockets:

import socket
from eunuchs.sendmsg import sendmsg
from socket import SOL_SOCKET
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect("/tmp/asdf")
sendmsg(fd=s.fileno(), data="QUIT\n", flags=0, ancillary=[], host='', port=0)

Note that host= and port= is necessary, but shouldn't.

Upon executing the above code I get:
Traceback (most recent call last):
  File "./testcli.py", line 9, in ?
    sendmsg(fd=s.fileno(), data="QUIT\n", flags=0, ancillary=[], host='', 
port=0)
SystemError: NULL result without error in PyObject_Call


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-rc4-f52ee1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages python-eunuchs depends on:
ii  python                        2.3.5-5    An interactive high-level object-o
ii  python2.3-eunuchs             20050320.1 Missing manly parts of UNIX API fo

python-eunuchs recommends no packages.

-- no debconf information




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to