Changeset 91 in Main for trunk/Server/main.c


Ignore:
Timestamp:
Sep 19, 2024, 10:15:32 PM (8 weeks ago)
Author:
Nishi
Message:

fix select

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/main.c

    r90 r91  
    7676#endif
    7777
     78void sig(int sign){
     79        printf("%d\n", sign);
     80        exit(0);
     81}
     82
    7883int main(int argc, char** argv) {
    7984        logfile = stderr;
     
    146151        signal(SIGPIPE, SIG_IGN);
    147152        signal(SIGCONT, SIG_IGN);
     153        int i;
     154        for(i = 1; i < 32; i++) signal(i, sig);
    148155#else
    149156        SetConsoleTitle(tw_server);
Note: See TracChangeset for help on using the changeset viewer.