summaryrefslogtreecommitdiff
path: root/src/ipc_connecter.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:03:45 +0900
commit0e167c86051614f9d9d9fab255aae8272b1b056b (patch)
tree4b1184b3937804a4cdfaad5552085c94e3fa813e /src/ipc_connecter.cpp
parentff12aabf4b2ec48339235ad67175575d2b00adc0 (diff)
File descriptor passed to in_event and out_event
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ipc_connecter.cpp')
-rw-r--r--src/ipc_connecter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipc_connecter.cpp b/src/ipc_connecter.cpp
index 8e3ea9c..243d795 100644
--- a/src/ipc_connecter.cpp
+++ b/src/ipc_connecter.cpp
@@ -73,15 +73,15 @@ void xs::ipc_connecter_t::process_plug ()
start_connecting ();
}
-void xs::ipc_connecter_t::in_event ()
+void xs::ipc_connecter_t::in_event (fd_t fd_)
{
// We are not polling for incomming data, so we are actually called
// because of error here. However, we can get error on out event as well
// on some platforms, so we'll simply handle both events in the same way.
- out_event ();
+ out_event (fd_);
}
-void xs::ipc_connecter_t::out_event ()
+void xs::ipc_connecter_t::out_event (fd_t fd_)
{
fd_t fd = connect ();
rm_fd (handle);
@@ -122,7 +122,7 @@ void xs::ipc_connecter_t::start_connecting ()
if (rc == 0) {
handle = add_fd (s);
handle_valid = true;
- out_event ();
+ out_event (s);
return;
}