G
gus bjorklund
Guest
not sure what you mean by fake threads. _progres on UNIX and Linux has only the main thread. When a signal occurs, the main thread’s execution is interrupted and control is given to the signal handler. depending on where the main thread is interrupted, the signal handler can’t do various things and there are library functions which may not be used in signal handlers. in easy cases when things go properly, the main thread continues execution after the signal handler returns. further complication is that certain signals are ignored sometimes but not always. for example, SIGINT (normally from ctrl-c) must be handled in an interactive session but ignored in batch and is ignored by servers. further complication is that some signals, for example a floating point error or illegal instruction, are fatal errors and the process must be terminated /without/ continuing the main thread (otherwise the error will just reoccur).
Continue reading...
Continue reading...