aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-06 22:44:52 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-06 22:44:52 +0100
commit6c2404e051cb6a235f985797c149af0791f44bbd (patch)
tree7f690ac9089925e345df5d4922ae29a4c1207d62 /bitlbee.c
parent006a84f999248d1bc1c1e36fa3437765d4bd1142 (diff)
First part of the handshake, including sending a file descriptor to the
IPC master.
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitlbee.c b/bitlbee.c
index d0d95e67..78f4b4e5 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -317,10 +317,12 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition
{
struct bitlbee_child *child;
+ /* TODO: Stuff like this belongs in ipc.c. */
child = g_new0( struct bitlbee_child, 1 );
child->pid = client_pid;
child->ipc_fd = fds[0];
child->ipc_inpa = b_input_add( child->ipc_fd, B_EV_IO_READ, ipc_master_read, child );
+ child->to_fd = -1;
child_list = g_slist_append( child_list, child );
log_message( LOGLVL_INFO, "Creating new subprocess with pid %d.", (int) client_pid );