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

2008-08-02 Thread Riccardo Di Meo
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

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

2008-08-02 Thread Riccardo Di Meo
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 to be correct (at lea