OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <errno.h> | 5 #include <errno.h> |
6 #include <signal.h> | 6 #include <signal.h> |
7 #include <sys/file.h> | 7 #include <sys/file.h> |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 | 9 |
10 #include <iostream> | 10 #include <ostream> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/timer.h" | 17 #include "base/timer.h" |
18 #include "net/tools/flip_server/acceptor_thread.h" | 18 #include "net/tools/flip_server/acceptor_thread.h" |
19 #include "net/tools/flip_server/constants.h" | 19 #include "net/tools/flip_server/constants.h" |
20 #include "net/tools/flip_server/flip_config.h" | 20 #include "net/tools/flip_server/flip_config.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 break; | 408 break; |
409 } | 409 } |
410 usleep(1000*10); // 10 ms | 410 usleep(1000*10); // 10 ms |
411 } | 411 } |
412 | 412 |
413 unlink(PIDFILE); | 413 unlink(PIDFILE); |
414 close(pidfile_fd); | 414 close(pidfile_fd); |
415 return 0; | 415 return 0; |
416 } | 416 } |
417 | 417 |
OLD | NEW |