summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 08:09:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-31 08:09:36 +0200
commitd5df5fb5b8f5e2815405a76ced4b7407988af0d6 (patch)
tree147b8cb449d956c4ace10fcac28592b5512ba13a /src/fastd.h
parent38dfd6da00870e5a8f1e59258f351d295599720f (diff)
downloadfastd-d5df5fb5b8f5e2815405a76ced4b7407988af0d6.tar
fastd-d5df5fb5b8f5e2815405a76ced4b7407988af0d6.zip
Fix poll race condition on *BSD
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fastd.h b/src/fastd.h
index eeb2d3d..f69f2f8 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -292,11 +292,6 @@ struct fastd_string_stack {
extern fastd_context_t ctx;
extern fastd_config_t conf;
-extern volatile bool fastd_sig_hup;
-extern volatile bool fastd_sig_terminate;
-extern volatile bool fastd_sig_dump;
-extern volatile bool fastd_sig_chld;
-
void fastd_send(const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, fastd_buffer_t buffer, size_t stat_size);
void fastd_send_handshake(const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, fastd_buffer_t buffer);
@@ -376,11 +371,6 @@ static inline size_t alignto(size_t l, size_t a) {
return block_count(l, a)*a;
}
-/** Returns true if any unhandled signal in currently queued */
-static inline bool fastd_signalled(void) {
- return (fastd_sig_hup || fastd_sig_terminate || fastd_sig_dump || fastd_sig_chld);
-}
-
/** Returns the maximum payload size \em fastd is configured to transport */
static inline size_t fastd_max_payload(void) {
switch (conf.mode) {