aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitlbee.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 6e36bd12..c6ae6b22 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -58,6 +58,10 @@ gboolean bitlbee_io_new_client( GIOChannel *source, GIOCondition condition, gpoi
{
/* We don't need this one, only the client does. */
close( new_socket );
+
+ /* Or maybe we didn't even get a child process... */
+ if( client_pid == -1 )
+ log_message( LOGLVL_ERROR, "Failed to fork() subprocess for client: %s", strerror( errno ) );
}
return TRUE;