>>>> "Jan" == Jan Vroonhof
<vroonhof(a)math.ethz.ch> writes:
Jan> Oscar Figueiredo <Oscar.Figueiredo(a)di.epfl.ch> writes:
> surrounded by {slow_down,speed_up}_interrupts. I even tried
> `stop_interrupts> and `start_interrupts' with no success. I can't
> understand why it works for searches (which also call `ldap_result') and
> not for addition and deletion.
Jan> That could just be some timing issue. It could also be that there is a
Jan> file descriptor involved that unrequest_sigio doesn't know about.
> I'd appreciate very much some help from someone knowledgeable
in
> this area.
Jan> Could you check with strace or truss which signal is interrupting the
Jan> syscal?
From what I saw in DDD, it's a SIGIO. I have been investigating
the problem a
little further since my last post and it appears that
`slow_down_interrupts'
does not disable SIGIO correctly at least on RedHat 6.0 Linux.
Adding a pair of EMACS_{UN}BLOCK_SIGNAL (SIGIO); around calls to `ldap_result'
solves the problem. Therefore I believe `unrequest_sigio' (called from
`slow_down_interrupts') is not doing its job correctly.
Oscar