Changes in / [97aca3d:3e3f236]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/main.cfa

    r97aca3d r3e3f236  
    7575        address.sin_port = htons( options.socket.port );
    7676
    77         int waited = 0;
    78         for() {
    79                 ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) );
    80                 if(ret < 0) {
    81                         if(errno == 98) {
    82                                 if(waited == 0) {
    83                                         printf("Waiting for port\n");
    84                                 } else {
    85                                         printf("\r%d", waited);
    86                                         fflush(stdout);
    87                                 }
    88                                 waited ++;
    89                                 sleep( 1`s );
    90                                 continue;
    91                         }
    92                         abort( "bind error: (%d) %s\n", (int)errno, strerror(errno) );
    93                 }
    94                 break;
     77        ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) );
     78        if(ret < 0) {
     79                abort( "bind error: (%d) %s\n", (int)errno, strerror(errno) );
    9580        }
    9681
  • libcfa/src/concurrency/io/setup.cfa

    r97aca3d r3e3f236  
    1717#define _GNU_SOURCE         /* See feature_test_macros(7) */
    1818
    19 #if defined(__CFA_DEBUG__)
    20         // #define __CFA_DEBUG_PRINT_IO__
    21         // #define __CFA_DEBUG_PRINT_IO_CORE__
    22 #endif
    23 
    2419#include "io/types.hfa"
    2520#include "kernel.hfa"
     
    116111
    117112        void __kernel_io_startup(void) {
    118                 __cfadbg_print_safe(io_core, "Kernel : Creating EPOLL instance\n" );
     113                __cfaabi_dbg_print_safe( "Kernel : Creating EPOLL instance\n" );
    119114
    120115                iopoll.epollfd = epoll_create1(0);
     
    123118                }
    124119
    125                 __cfadbg_print_safe(io_core, "Kernel : Starting io poller thread\n" );
     120                __cfaabi_dbg_print_safe( "Kernel : Starting io poller thread\n" );
    126121
    127122                iopoll.run = true;
     
    146141                // Io polling is now fully stopped
    147142
    148                 __cfadbg_print_safe(io_core, "Kernel : IO poller stopped\n" );
     143                __cfaabi_dbg_print_safe( "Kernel : IO poller stopped\n" );
    149144        }
    150145
     
    154149                id.id = doregister(&id);
    155150                __cfaabi_tls.this_proc_id = &id;
    156                 __cfadbg_print_safe(io_core, "Kernel : IO poller thread starting\n" );
     151                __cfaabi_dbg_print_safe( "Kernel : IO poller thread starting\n" );
    157152
    158153                // Block signals to control when they arrive
     
    189184                }
    190185
    191                 __cfadbg_print_safe(io_core, "Kernel : IO poller thread stopping\n" );
     186                __cfaabi_dbg_print_safe( "Kernel : IO poller thread stopping\n" );
    192187                unregister(&id);
    193188                return 0p;
Note: See TracChangeset for help on using the changeset viewer.