[Mono-dev] Control-C handler

Robert Jordan robertj at gmx.net
Wed Jan 2 12:09:45 EST 2008


Avery Pennarun wrote:
> On 02/01/2008, Paolo Molaro <lupus at ximian.com> wrote:
>> On 12/21/07 pablosantosluac wrote:
>>> Ok, I think I got a bit lost here... how should I proceed then?
>> There is no guarantee that you can hook to signal handlers
>> from C#, we don't support that usage and its inclusion in Mono.Posix is
>> a mistake.
>> I'm actually going to add code to mono to detect such unsupported uses
>> so we can flag error reports from applications that hook signal handlers
>> as unusable and we can discard them.
> 
> Surely there must be *some* way to handle signals from inside a mono
> app?  This seems like a huge omission.  Even perl can do it!
> (http://search.cpan.org/~lbaxter/Sys-SigAction-0.10/lib/Sys/SigAction.pm)

Well, perl's standard signal handlers suffer from the same limitations
like mono's and the new "deferred" signal handlers are just a lame
compromise.

Robert




More information about the Mono-devel-list mailing list