Changeset 2d75b56


Ignore:
Timestamp:
2006-01-09T20:56:09Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4fe4be2
Parents:
08995b0
Message:

Added a check for the fork() return value, that should actually be enough for error handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bitlbee.c

    r08995b0 r2d75b56  
    5959                /* We don't need this one, only the client does. */
    6060                close( new_socket );
     61               
     62                /* Or maybe we didn't even get a child process... */
     63                if( client_pid == -1 )
     64                        log_message( LOGLVL_ERROR, "Failed to fork() subprocess for client: %s", strerror( errno ) );
    6165        }
    6266       
Note: See TracChangeset for help on using the changeset viewer.