aboutsummaryrefslogtreecommitdiff
path: root/src/util/secmod_common.h
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-27 12:04:52 +0200
committerFlorian Dold <florian@dold.me>2021-07-27 12:04:52 +0200
commit9624d92a65520b982f107ede35c085f9daee5fda (patch)
tree593869d30eb733bd71b4a0b20f5cbf27a627ab12 /src/util/secmod_common.h
parent32f3391be100622a79c40fdce7dcec44418da34c (diff)
downloadexchange-9624d92a65520b982f107ede35c085f9daee5fda.tar.xz
secmod: use umask, as fchmod is undefined on sockets
Diffstat (limited to 'src/util/secmod_common.h')
-rw-r--r--src/util/secmod_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/secmod_common.h b/src/util/secmod_common.h
index c1eea655c..ca1270fa8 100644
--- a/src/util/secmod_common.h
+++ b/src/util/secmod_common.h
@@ -28,6 +28,9 @@
/**
* Create the listen socket for a secmod daemon.
*
+ * This function is not thread-safe, as it changes and
+ * restores the process umask.
+ *
* @param unixpath socket path
*/
struct GNUNET_NETWORK_Handle *