]> jfr.im git - irc/atheme/atheme.git/commit
libathemecore/connection: connection_add(): make fd non-inheritable
authorAaron Jones <redacted>
Sat, 7 Aug 2021 18:36:00 +0000 (18:36 +0000)
committerAaron Jones <redacted>
Sat, 7 Aug 2021 18:38:22 +0000 (18:38 +0000)
commit4fcc641cc67d7e4de3f381881cce13709de32300
tree0c82e4216fae5ee27ab7d5ec203d7c4f94e19911
parent86831bbd08de794245be9c2dff135ca02566bba9
libathemecore/connection: connection_add(): make fd non-inheritable

Grumble; Windows compatibility stuff, ew, etc. I just copied the
function below it. Windows compatibility is liable to get ripped
out of services entirely due to WSL being A Thing now, but for
now just follow the convention.

This means we now don't need to call connection_close_all_fds()
when forking to send e-mail.
libathemecore/connection.c
libathemecore/function.c