Commit 9b0fdcf
committed
erts: Guard the linger check for portability
SO_LINGER is guarded everywhere else in the file, so guard the new
check too. Without the option a close cannot linger, so the dirty
scheduler is skipped. Also use SOCKOPTLEN_T for the option length
like every other getsockopt call in the file; SOCKLEN_T falls back
to size_t on Windows where getsockopt writes through an int pointer.1 parent 6be6a8e commit 9b0fdcf
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7653 | 7653 | | |
7654 | 7654 | | |
7655 | 7655 | | |
| 7656 | + | |
7656 | 7657 | | |
7657 | | - | |
| 7658 | + | |
7658 | 7659 | | |
7659 | 7660 | | |
7660 | 7661 | | |
| |||
7664 | 7665 | | |
7665 | 7666 | | |
7666 | 7667 | | |
| 7668 | + | |
| 7669 | + | |
| 7670 | + | |
| 7671 | + | |
7667 | 7672 | | |
7668 | 7673 | | |
7669 | 7674 | | |
| |||
0 commit comments