Debug logging
This commit is contained in:
parent
91bcde20e5
commit
abc3732e0e
1 changed files with 5 additions and 1 deletions
|
@ -3,10 +3,12 @@
|
|||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define ADDR "127.0.0.1"
|
||||
|
||||
int sd;
|
||||
|
||||
int run_server(const char **port_str) {
|
||||
if (open_socket("127.0.0.1", *port_str, &sd) != 0) {
|
||||
if (open_socket(ADDR, *port_str, &sd) != 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -44,6 +46,8 @@ int main (int argc, char **argv) {
|
|||
&port_str
|
||||
);
|
||||
|
||||
fprintf(stderr, "Alive on %s:%s\n", ADDR, port_str);
|
||||
|
||||
signal(SIGINT, &sigint_handler);
|
||||
|
||||
int res, status;
|
||||
|
|
Reference in a new issue