Changeset aefa26aefdd4538de7337e9c9b0cced45abb1d74
- Timestamp:
- 09/18/09 17:29:58 (3 years ago)
- Author:
- Neutron Soutmun <neo.neutron@…>
- Children:
- c9d8db9916965607ae249b301f1991b931044ee8
- Parents:
- 8099ec906a89243a29bf56431c7f4ad523fdbf67
- git-committer:
- Neutron Soutmun <neo.neutron@…> (09/18/09 17:29:58)
- Message:
-
Fix daemon get stuck at 100% CPU when no log file
- Fix daemon get stuck when the log file does not exists, requested access
to the file is not allowed or any errors. (Thanks Theppitak for the issue
of this case)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r927d0c7
|
raefa26a
|
|
| 183 | 183 | rh_main_server->log_fd = rh_openlog(rh_main_server->main_config->log_file); |
| 184 | 184 | |
| 185 | | if (!rh_main_server->log_fd) { |
| | 185 | if (rh_main_server->log_fd == -1) { |
| 186 | 186 | syslog(LOG_ERR, "Could not open log file %s\n", |
| 187 | 187 | rh_main_server->main_config->log_file); |
| … |
… |
|
| 347 | 347 | rh_main_server->log_fd = rh_openlog(rh_main_server->main_config->log_file); |
| 348 | 348 | |
| 349 | | if (!rh_main_server->log_fd) { |
| | 349 | if (rh_main_server->log_fd == -1) { |
| 350 | 350 | syslog(LOG_ERR, "Could not open log file %s\n", |
| 351 | 351 | rh_main_server->main_config->log_file); |