summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-16 00:22:51 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-17 01:41:35 +0200
commit6a4c6a02de9b45abe4c0f78c4f5d14d92d3359d6 (patch)
treea04920b212b8552602d48a978a9ae44441474a7c /src/util
parent6d1dcf7937ba3739d17eda614591d1f59ac0bf3a (diff)
downloadpacman-6a4c6a02de9b45abe4c0f78c4f5d14d92d3359d6.tar.gz
pacman-6a4c6a02de9b45abe4c0f78c4f5d14d92d3359d6.tar.xz
use sockets for scriptlet/hook communication
If a scriptlet/hook dies at the wrong moment it can trigger SIGPIPE, terminating the process. For pipes, there is no way to prevent SIGPIPE other than ignoring it process-wide. This can have unintended consequences in a multi-threaded process. Using send(2) with sockets, however, allows ignoring SIGPIPE on a per-call basis, leaving other threads able to make use of SIGPIPE. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src/util')
0 files changed, 0 insertions, 0 deletions