summaryrefslogtreecommitdiff
path: root/indra/llcommon/llheartbeat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llheartbeat.cpp')
-rw-r--r--indra/llcommon/llheartbeat.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/llheartbeat.cpp b/indra/llcommon/llheartbeat.cpp
index 782a4f7ff6..b08e72137a 100644
--- a/indra/llcommon/llheartbeat.cpp
+++ b/indra/llcommon/llheartbeat.cpp
@@ -72,8 +72,13 @@ LLHeartbeat::rawSend()
if (mSuppressed)
return 0; // Pretend we succeeded.
+ int result;
+#ifndef LL_DARWIN
union sigval dummy;
- int result = sigqueue(getppid(), LL_HEARTBEAT_SIGNAL, dummy);
+ result = sigqueue(getppid(), LL_HEARTBEAT_SIGNAL, dummy);
+#else
+ result = kill(getppid(), LL_HEARTBEAT_SIGNAL);
+#endif
if (result == 0)
return 0; // success