diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-13 21:53:25 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-13 21:53:25 +0000 |
commit | 28f3e476dab7197a69c2afccfb87752f6e6b242a (patch) | |
tree | 09e4b8c2cb6a5c0d71907e81e39f2f4af697e8d2 /src/core/log.c | |
parent | 0ef25c9fb4666f0eb4bea19eace62479de2f6cab (diff) | |
download | irssi-28f3e476dab7197a69c2afccfb87752f6e6b242a.zip |
Complain only once with autologging if opening some log file failed
(locked by another irssi)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@734 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/log.c')
-rw-r--r-- | src/core/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/log.c b/src/core/log.c index 92f90043..b6c6fba4 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -88,6 +88,7 @@ int log_start_logging(LOG_REC *log) log_file_create_mode); if (log->handle == -1) { signal_emit("log create failed", 1, log); + log->failed = TRUE; return FALSE; } #ifdef HAVE_FCNTL @@ -97,6 +98,7 @@ int log_start_logging(LOG_REC *log) close(log->handle); log->handle = -1; signal_emit("log locked", 1, log); + log->failed = TRUE; return FALSE; } #endif @@ -108,6 +110,7 @@ int log_start_logging(LOG_REC *log) "\n", log->last); signal_emit("log started", 1, log); + log->failed = FALSE; return TRUE; } |