+#else
+
+class ThreadSignalSocket : public BufferedSocket
+{
+ SocketThread* parent;
+ int send_fd;
+ public:
+ ThreadSignalSocket(SocketThread* p, int recvfd, int sendfd) :
+ BufferedSocket(recvfd), parent(p), send_fd(sendfd) {}
+
+ ~ThreadSignalSocket()
+ {
+ close(send_fd);
+ }
+
+ void Notify()
+ {
+ char dummy = '*';
+ write(send_fd, &dummy, 1);
+ }
+
+ void OnDataReady()
+ {
+ recvq.clear();
+ parent->OnNotify();
+ }
+
+ void OnError(BufferedSocketError)
+ {
+ ServerInstance->GlobalCulls.AddItem(this);
+ }
+};