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
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
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
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
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)
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
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
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