Re: Signal issues.




On Dec 31, 2004, at 8:27 AM, muppet wrote:

On Dec 31, 2004, at 6:59 AM, Jan Hudec wrote:

That is, just add a special source, that will be checked in every iteration, it will look at the signal flag in perl interpreter and if it's set, it will just make a dummy call to the interpreter to let it handle the signal. Minimal overhead and no need to hack about with %SIG and things like that. This option was not mentioned in the message cited above.

...
i'll play with this over the weekend and see what i can come up with.

quick, easy, and works like a charm.

attached are a patch to implement this against 1.071 and a program to exercise it. what do you think?

i'd also like suggestions on how & where to work into the perl-level docs an explanation of this stuff.

Attachment: async.patch
Description: Binary data

Attachment: async.pl
Description: Binary data



--
"the ternary operator makes it a bit less ugly."
    -- kaffee


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]