[fpc-devel] Linux Signals
Nikolai Zhubr
n-a-zhubr at yandex.ru
Mon Jan 3 12:45:28 CET 2011
02.01.2011 22:46, Sven Barth:
> On 02.01.2011 18:16, Andrew Brunner wrote:
>> I'm really surprised that I come off as sounding pro any OS.
>> Personally, I'm the type of person to remove Windows 7 from my brand
>> new laptop just to run Ubuntu. I think there is though, some sort of
>> deep seeded resentment towards event driven methods.
>>
>> So back to the topic... As it stands I do have SIGIO issues and am
>> working on epoll. But since sigaction is preferable I'm searching for
>> anyone with information as to how to get the kernel to define my
>> sigaction and associate it with socket methods not Terminal IO. I
>> think there is a flag I can set - I just don't have the value or name.
>
> If you're desperate enough you could look how the Wine developers
> implemented Windows' event mechanism on Linux...
LOL, this was also my first idea when I started thinking about porting
my app to linux. Subsequently it prooved absolutely unnecessary.
Moreover, I found that epoll-based implementation is much safer than
winapi-based implementation regarding both programmer's mistakes and
corner-cases at runtime. Definitely, epoll inventors were pretty smart
in this respect, imho.
[Sorry for getting offtopic again, I promise to stop at this point.]
Nikolai
>
> Regards,
> Sven
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>
More information about the fpc-devel
mailing list