in reply to Re^2: How do we capture CTRL^C
in thread How do we capture CTRL^C
The basic problem is that prior to 5.8.0, Perl would process a received signal immediately even if it was in the middle of an operation. This could make lead to some undesireable behavior when signals were received (intentionally such as hitting CTRL-C or otherwise). The problem with the alternative (safe signals) is that it may be this long running operation you want to abort midstream. With 5.8.1 and above, you can set an environment variable to get back the old functionality (which some find to be desireable) called unsafe-signals.
Understanding is the key since the word "unsafe" leads to certain connotations that may not be applicable to a given circumstance. It is the reason why the N (nuclear) in NMRI has been almost universally dropped - people freak out when they hear it.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How do we capture CTRL^C
by tirwhan (Abbot) on Mar 07, 2005 at 23:52 UTC | |
by Limbic~Region (Chancellor) on Mar 08, 2005 at 00:00 UTC |