aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-04-13 19:32:13 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-04-13 19:32:13 +0200
commit940bd3eff922c46ac280136e3674ee70ea40f08e (patch)
tree08194240dfa2dd320fce23d21e4de13becab41a0 /passt.h
parent1a3ade90371f7e9490e8f3be0aff83f2e178c327 (diff)
downloadpasst-940bd3eff922c46ac280136e3674ee70ea40f08e.tar
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.tar.gz
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.tar.bz2
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.tar.lz
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.tar.xz
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.tar.zst
passt-940bd3eff922c46ac280136e3674ee70ea40f08e.zip
passt: Fix error check for signal(), improve error messages
Valtteri reports that if SIGPIPE already has a disposition set by the parent process, such as systemd with the default setting of IgnoreSIGPIPE=yes, signal() will return the previous value, not zero, and this is not an error: check for SIG_ERR instead. While at it, split messages for failures of sigaction() and signal(), and report the actual error. Reported-by: Valtteri Vuorikoski <vuori@notcom.org> Fixes: 8534be076c73 ("Catch failures when installing signal handlers") Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
0 files changed, 0 insertions, 0 deletions