signals (again)

Michael Hudson mwh at python.net
Thu Aug 11 08:29:28 EDT 2005


"bill" <bill.pursell at gmail.com> writes:

> I see this (or similar) question occasionally looking back through the
> archive, but haven't yet seen a definitive answer, so I'm going to ask
> it again.
>
> Consider the following:
>
> while True:
>     do_something_to_files_in_directory(fd)
>     fcntl(fd, F_NOTFIY, DN_CREATE)
>     signal.pause()
>
>
> How do you deal with the signal that occurs after the fcntl and before
> the pause?

I don't think you can, sorry.

Cheers,
mwh

-- 
  Get out your salt shakers folks, this one's going to take more
  than one grain.                 -- Ator in an Ars Technica news item



More information about the Python-list mailing list