Commit 06bbd28
committed
Use PIPE_READ_END, PIPE_WRITE_END to clarify use of a socketpair
Both sockets in the socket pair are technically bidirectional, but we
are using them as though they were unidirectional, with the same
convention as pipe(): the first socket in the array is used for reading,
and the second is for writing.
Signed-off-by: Simon McVittie <smcv@collabora.com>1 parent 4021ac2 commit 06bbd28
2 files changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3144 | 3144 | | |
3145 | 3145 | | |
3146 | 3146 | | |
3147 | | - | |
| 3147 | + | |
3148 | 3148 | | |
3149 | | - | |
3150 | | - | |
3151 | | - | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
3152 | 3152 | | |
3153 | 3153 | | |
3154 | 3154 | | |
| |||
3232 | 3232 | | |
3233 | 3233 | | |
3234 | 3234 | | |
3235 | | - | |
3236 | | - | |
3237 | | - | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
3238 | 3238 | | |
3239 | 3239 | | |
3240 | 3240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
| |||
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
793 | | - | |
| 799 | + | |
794 | 800 | | |
795 | 801 | | |
796 | 802 | | |
| |||
0 commit comments