Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
idomod fails to run rotate_command
Browse files Browse the repository at this point in the history
IssueID #115
  • Loading branch information
andurin committed Jul 1, 2009
1 parent 84555d9 commit 7825033
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions module/idoutils/src/idomod.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,7 @@ int ndomod_goodbye_sink(void){

/* used to rotate data sink file on a regular basis */
int ndomod_rotate_sink_file(void *args){
char raw_command_line[MAX_COMMAND_BUFFER];
char *raw_command_line_3x=NULL;
char processed_command_line[MAX_COMMAND_BUFFER];
char *processed_command_line_3x=NULL;
int early_timeout=FALSE;
double exectime;
Expand All @@ -575,13 +573,13 @@ int ndomod_rotate_sink_file(void *args){

/* get the raw command line */
get_raw_command_line(find_command(ndomod_sink_rotation_command),ndomod_sink_rotation_command,&raw_command_line_3x,STRIP_ILLEGAL_MACRO_CHARS|ESCAPE_MACRO_CHARS);
strip(raw_command_line);
strip(raw_command_line_3x);

/* process any macros in the raw command line */
process_macros(raw_command_line,&processed_command_line_3x,STRIP_ILLEGAL_MACRO_CHARS|ESCAPE_MACRO_CHARS);
process_macros(raw_command_line_3x,&processed_command_line_3x,STRIP_ILLEGAL_MACRO_CHARS|ESCAPE_MACRO_CHARS);

/* run the command */
my_system(processed_command_line,ndomod_sink_rotation_timeout,&early_timeout,&exectime,NULL,0);
my_system(processed_command_line_3x,ndomod_sink_rotation_timeout,&early_timeout,&exectime,NULL,0);


/* allow data to be written to the sink */
Expand Down

0 comments on commit 7825033

Please sign in to comment.