Re: [fpc-pascal] Forcibly terminating a thread

2016-02-27 Thread Mark Morgan Lloyd
Jonas Maebe wrote: On 27/02/16 12:40, Mark Morgan Lloyd wrote: Is there a way of sending an unambiguous system-level kill signal to a thread? KillThread(ThreadID) doesn't appear to be brutal enough, and I'm unsure of the correct way to access pthread_kill(). You cannot asynchronously kill thre

Re: [fpc-pascal] Forcibly terminating a thread

2016-02-27 Thread Jonas Maebe
On 27/02/16 12:40, Mark Morgan Lloyd wrote: Is there a way of sending an unambiguous system-level kill signal to a thread? KillThread(ThreadID) doesn't appear to be brutal enough, and I'm unsure of the correct way to access pthread_kill(). You cannot asynchronously kill threads on Unix platform

[fpc-pascal] Forcibly terminating a thread

2016-02-27 Thread Mark Morgan Lloyd
I've got a program here which, under some conditions of testing, ends up with a thread stuck inside a system call (detail: a mainframe emulator, which is still trying to read a damaged punched card when the operator hits the power-off button). Is there a way of sending an unambiguous system-le