Commit b7195ce
committed
libvncserver: move self-pipe check in client thread before any FD_ISSET
...and jump to loop start on encountering something in the self-pipe.
Rationale is that on some platforms FD_ISSET(-1) triggers
`FORTIFY: FD_ISSET: file descriptor -1 < 0`. This is the case on
Android, for instance.1 parent ce21406 commit b7195ce
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | 574 | | |
579 | 575 | | |
580 | 576 | | |
581 | 577 | | |
582 | 578 | | |
583 | 579 | | |
584 | 580 | | |
| 581 | + | |
585 | 582 | | |
586 | 583 | | |
587 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
0 commit comments