Yen-Ju Chen wrote:
> On 8/1/07, Fred Kiefer <[EMAIL PROTECTED]> wrote:
>> I like the idea of responding to signals properly, but checking for
>> unistd.h and then including signal.h is clearly wrong. When we add
>> something, we need to add it the clean way.
>>
>> And actually we already have this code in place. In back we have for x11
>> a very similar call to signal:
>>
>>   signal(SIGTERM, terminate);
>>
>> and terminate() is of course:
>>
>> static void
>> terminate(int sig)
>> {
>>   [NSApp terminate: NSApp];
>> }
>>
>> Now we only need to decide if we think that SIGINT should be handled the
>> same as SIGTERM. And if so add one line to XGServer.m
> 
>   The idea was to receive a signal when users logout x window.
>   The SIGINT is normally triggered ty Ctrl-C.
>   I am not sure whether it depends on the platform for logout.
> 

I understand this, still the original patch wasn't in a state to be
committed. It would break compilations on many non-standard Unix
systems.  Better to have the handling of Control-C only for the x
backend than to break the system for anybody. I am willing to apply
another patch for MS Windows, if it gets send in.

Cheers,
Fred

PS: This change should also improve the situation for Andreas Höschler,
as killed applications should now be removed from the cache more reliable.


_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to