Re: fcntl and siginfo_t in python

2009-05-06 Thread ma
Sure, I'll send you the source files when I get a chance! --Sent from my iPhone On May 6, 2009, at 4:03 PM, Philip wrote: ma gmail.com> writes: Ok! So, I decided to write a C-extension instead of using ctypes... This works beautifully. Now, I want to release this to the public, so I'm thi

Re: fcntl and siginfo_t in python

2009-05-06 Thread Philip
ma gmail.com> writes: > > Ok! So, I decided to write a C-extension instead of using ctypes... > > This works beautifully. Now, I want to release this to the public, so > I'm thinking of making a bit of code cleanup. Should I just pack the > entire siginfo_t struct, right now I just use the fd, i

Re: fcntl and siginfo_t in python

2009-05-04 Thread ma
Ok! So, I decided to write a C-extension instead of using ctypes. So far, I create a module called dnotifier and the handler callback receives two arguments, the signal number and the respective file descriptor that was modified. This works beautifully. Now, I want to release this to the public, s

Re: fcntl and siginfo_t in python

2009-05-01 Thread ma
According to man signal, "The default action for an unhandled real-time signal is to terminate the receiving process." This means that my registered callback and sigaction does not work. I think the only solution would be to try this with a C-extension. Has anyone had any experience with this befo

Re: fcntl and siginfo_t in python

2009-04-30 Thread ma
I attached a clean copy of the .py file in case others couldn't read it in their emails. I'll try that and let you know how SIGRTMIN+1 goes! What about this part? #sigemptyset(&act.sa_mask); #python2.6 has byref(act, offset),how can i port this over? #maybe addressof(act)+sizeof(sigaction.sa_mask)

Re: fcntl and siginfo_t in python

2009-04-30 Thread Philip
ma gmail.com> writes: > > > > > Here's something that I came up with so far, I'm having some issues with segfaulting, if I want to pass a struct member by ref in ctypes(see below), if not, I just get a > "Real-time signal 0" sent back to me. > > > Any ideas? Try "SIGRTMIN+1", per http://s

Re: fcntl and siginfo_t in python

2009-04-29 Thread ma
Here's something that I came up with so far, I'm having some issues with segfaulting, if I want to pass a struct member by ref in ctypes(see below), if not, I just get a "Real-time signal 0" sent back to me. Any ideas? #!/usr/bin/env python import os, sys, re try: import fcntl except ImportError

Re: fcntl and siginfo_t in python

2009-04-28 Thread Gabriel Genellina
En Tue, 28 Apr 2009 17:56:21 -0300, ma escribió: Developing on a machine with a 2.6.5 kernel, which unfortunately, is not blessed with inotify and we do not have FAM. I was wondering if there are pre-built extensions ( a few google searches turned up fruitless) that utilize fcntl properly and a

fcntl and siginfo_t in python

2009-04-28 Thread ma
Developing on a machine with a 2.6.5 kernel, which unfortunately, is not blessed with inotify and we do not have FAM. I was wondering if there are pre-built extensions ( a few google searches turned up fruitless) that utilize fcntl properly and allow for siginfo_t struct support when attempting to