aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-22 06:29:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-25 16:56:13 +0000
commit81222dac578589d8ee37408ad892250fdd2d6de3 (patch)
treef01aba2b41b26ac9fbebcfca8a3f9e690a4decee /spawn.c
parentMerge branch 'pedantic' into master (diff)
selection: add a 2 second timeout when receiving clipboard data
When reading clipboard data, a malicious clipboard provider could stall us forever, by not sending any data, and not closing the pipe. This commit adds a timer_fd based timeout of 2 seconds. If the timer triggers, we abort the clipboard receive.
Diffstat (limited to 'spawn.c')
0 files changed, 0 insertions, 0 deletions