diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-10 00:39:25 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-10 00:39:25 +0100 |
commit | f3b6764f269490f11a8adbddeeb06964331917d0 (patch) | |
tree | 503b810a5e9322b444dc7e84e4d8535dc0f4807e /bitlbee.c | |
parent | 9a9b520df6044cfc034f9736fb97660a46e879b9 (diff) | |
parent | b556e46f9bfeeb630b45a3c0f0951110ac3de0f2 (diff) |
Only available in ForkDaemon mode for now: If a user connects (and
identifies) while he's already logged in, offer to take over the old
connection.
Diffstat (limited to 'bitlbee.c')
-rw-r--r-- | bitlbee.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 ); |