-rw-r--r-- | src/eyefiworker.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eyefiworker.cc b/src/eyefiworker.cc index 2d7827c..c051482 100644 --- a/src/eyefiworker.cc +++ b/src/eyefiworker.cc | |||
@@ -13,14 +13,14 @@ eyefiworker::eyefiworker() | |||
13 | #else | 13 | #else |
14 | #error Something is wrong with sigpipe prevention on the platform | 14 | #error Something is wrong with sigpipe prevention on the platform |
15 | #endif | 15 | #endif |
16 | ; | 16 | ; |
17 | } | 17 | } |
18 | 18 | ||
19 | int eyefiworker::run(int port) { | 19 | int eyefiworker::run(int bindport) { |
20 | if(!soap_valid_socket(bind(0,port,64))) | 20 | if(!soap_valid_socket(bind(0,bindport,64))) |
21 | throw std::runtime_error("failed to bind()"); | 21 | throw std::runtime_error("failed to bind()"); |
22 | signal(SIGCHLD,SIG_IGN); | 22 | signal(SIGCHLD,SIG_IGN); |
23 | while(true) { | 23 | while(true) { |
24 | if(!soap_valid_socket(accept())) | 24 | if(!soap_valid_socket(accept())) |
25 | throw std::runtime_error("failed to accept()"); | 25 | throw std::runtime_error("failed to accept()"); |
26 | pid_t p = fork(); | 26 | pid_t p = fork(); |