Changeset 84 in Main


Ignore:
Timestamp:
Sep 19, 2024, 9:50:05 PM (8 weeks ago)
Author:
Nishi
Message:

add error reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r83 r84  
    2222#include <stdio.h>
    2323#include <stdlib.h>
     24#include <errno.h>
    2425#include <sys/stat.h>
    2526#include <time.h>
     
    766767                int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv);
    767768                if(ret == -1) {
     769#ifndef __MINGW32__
     770                        cm_log("Server", "Select failure: %s", strerror(errno));
     771#endif
    768772                        break;
    769773                } else if(ret == 0) {
Note: See TracChangeset for help on using the changeset viewer.