By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,357 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,357 IT Pros & Developers. It's quick & easy.

Re: embedded python doesn't like socket.accept() and SegFaults

P: n/a
Solved (with the help of the guys on #python on freenode).

Long story short: i forgot the static in the function definitions and
the libc's "accept" got replaced with mine...

Riccardo Di Meo wrote:
Hi everyone,

I'm practicing with embedding python into C code and i have
encountered a very strange problem: I'm unable to call the "accept"
method of a (correctly created) server socket without receiving a
"Segmentation fault" (inside the PyObject_CallMethod).

My code <seemsto be correct (at least it's correct enough for me to
call .getsockname(), .fileno() and other methods without problems),
I'm pretty new to this thing though, therefore I'm confident I'm doing
something very dumb.
Aug 2 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.