pppd: Refactor setjmp/longjmp with pipe pair in event wait loop
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Thu, 26 Sep 2019 07:21:06 +0000 (09:21 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 1 Oct 2019 22:47:40 +0000 (08:47 +1000)
commit7f2f0deae2e0055373ccdd995cd3027aca546549
tree6f421d61d6c65e9d3c578827d1b76e265040c5cc
parent4e713175eae56cb863b39bc19d377f95a35823a8
pppd: Refactor setjmp/longjmp with pipe pair in event wait loop

setjmp/longjmp isn't supported by all compilers.
Having a pipe pair to wake an event wait loop from within a signal handler
is rather portable and common enough.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/main.c
pppd/tty.c