You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by basteon <ba...@gmail.com> on 2009/12/24 07:59:22 UTC

freeing after usr1 or not?

g'day,
I'm hope so someone be able help me with recontiguration tricks apache.
for instance, if I append something in my apache configuration

file_play /file/system/path/to/file.avi /uri/path

and do
kill -s USR1 ppid

and so as to add new files I do...
  if(play_list->files) {
    for(n = 0 ; play_list->files[n] != NULL ; n++);
  }
  play_list->files = (char**)realloc(play_list->files,(n+2)*sizeof(char*));
  if(play_list->files ==NULL) {
    printf("error");
    return;
  }

  play_list->files[n] = strdup(file);
  play_list->files[n+1] = NULL;

question concludes with flushing play_list if my apache will be
reconfigured by USR1?