search for: log_id

Displaying 8 results from an estimated 8 matches for "log_id".

Did you mean: log_pid
2013 Jun 28
1
version 2.3.3, file log.c bug report
Hello there, I just ran the static analysis checker "cppcheck" over the source code of icecast version 2.3.3 Amongst many other things, it said [log.c:301]: (warning) Logical conjunction always evaluates to false: log_id < 0 && log_id>= 25. Source code is ??? if (log_id < 0 && log_id>= LOG_MAXLOGS) ??????? return; Suggest replace && with ||. Regards David Binderman
2001 Sep 27
2
Icecast2 in xiph CVS, PATCH!
...======================= ======= RCS file: /usr/local/cvsroot/log/log.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 log.c --- log.c 2001/09/10 02:32:03 1.1.1.1 +++ log.c 2001/09/27 06:16:00 @@ -161,7 +161,8 @@ snprintf(pre, 256, "%s %s", prior[priority-1], cat); - fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre, line); + fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre, line); + log_flush(log_id); va_end(ap); } @@ -178,7 +179,7 @@ fprintf(loglist[log_id].logfile, "%s\n", line); va_end(ap); - fflush(loglist[log_id].logfil...
2007 Jul 05
2
undefined method `original_filename' for "random.jpg":String
...chomp self.data = attachment_field.read end def base_part_of(file_name) name = File.basename(file_name) name.gsub(/[^\w._-]/, '''') end end controllers/journal_controller.rb: ... def new @journal = Journal.new @attachment = Attachment.new session[:log_id] = params[:id] end def create @journal = Journal.new(params[:journal].merge(:user_id => session[:user_id], :log_id => session[:log_id])) session[:log_id] = nil @journal.attachments = [ Attachment.new(params[:attachment]) ] unless params[:attachment][:attachment] == "&quo...
2005 Feb 20
2
ices2 not re-connecting on live stream
On Sun, 2005-02-20 at 12:15, Fr?d?ric Bri?re wrote: > I've been running ices2 like this 24/7 for months now, only restarting > it once a week for log rotation. Never had a problem since. setting <logsize> will cause an automatic log rotation when a certain file size has been reached. It renames <logfile> to <logfile>.1 then opens a new file <logfile> karl.
2005 Feb 20
0
ices2 not re-connecting on live stream
...verboseness, ensures that the new logfile is created right away.) --- ices2-2.0.0-kh59.orig/src/signals.c +++ ices2-2.0.0-kh59/src/signals.c @@ -51,9 +51,11 @@ void signal_hup_handler(int signum __attribute__((unused))) { LOG_INFO0("Flushing logs"); - log_flush(ices_config->log_id); + log_reopen(ices_config->log_id); + LOG_INFO0("Reloading playlist"); ices_config->next_track = 1; + signal(SIGHUP, signal_hup_handler); } @@ -67,6 +69,7 @@ void signals_setup(void) { + signal(SIGHUP, signal_hup_handler); signal(SIGINT, signal_int_handle...
2011 Apr 29
4
You don't check for malloc failure
...1 @@ -368,6 +368,9 @@ entry = calloc (1, sizeof (log_entry_t)); entry->line = malloc (LOG_MAXLINELEN); + if (entry->line == NULL) { + abort(); + } len = snprintf (entry->line, LOG_MAXLINELEN, "%s%s\n", pre, line); entry->len = len; loglist [log_id].total += len; @@ -402,6 +405,9 @@ _lock_logger (); remain = loglist [log_id].total + 1; *_contents = malloc (remain); + if (*_contents == NULL) { + abort(); + } **_contents= '\0'; *_len = loglist [log_id].total; diff -ru icecast-2.3.2-ORIG/src/slave.c iceca...
2004 Aug 06
2
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
...nds, 0 bytes transfered. 0 sources connected -> [09/Jul/2001:19:49:29] Kicking all 0 clients for source 1 So I've run the corefile through gdb and see the following backtrace: #0 0x401782d6 in __swsetup () #1 0x40172284 in vfprintf () #2 0x4017202d in fprintf () #3 0x91c1 in log_write (log_id=-1, priority=3, cat=0x76e4 "thread/_start_routine", fmt=0x76bc "Added thread %d [%s] started at [%s:%d]") at log.c:162 #4 0x77a2 in _start_routine (arg=0x180e0) at thread.c:536 #5 0x4002ff88 in _thread_start () at /usr/src/lib/libpthread/../libc_r/uthread/uthread_create.c:212...
2004 Aug 06
0
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
...cted > -> [09/Jul/2001:19:49:29] Kicking all 0 clients for source 1 > > So I've run the corefile through gdb and see the following backtrace: > > #0 0x401782d6 in __swsetup () > #1 0x40172284 in vfprintf () > #2 0x4017202d in fprintf () > #3 0x91c1 in log_write (log_id=-1, priority=3, cat=0x76e4 "thread/_start_routine", fmt=0x76bc "Added thread %d [%s] started at > [%s:%d]") at log.c:162 > #4 0x77a2 in _start_routine (arg=0x180e0) at thread.c:536 > #5 0x4002ff88 in _thread_start () at /usr/src/lib/libpthread/../libc_r/uthread/uthrea...