Ignore:
Timestamp:
Oct 22, 2015, 9:48:01 AM (9 years ago)
Author:
dkearney
Message:

merging r5799 and r5800 (rpExec functions for matlab and octave) from trunk to 1.4 branch

Location:
branches/1.4
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/1.4

  • branches/1.4/lang/octave/octave3/Makefile.in

    r3471 r5918  
    6060                rpUnitsGetExponent.oct \
    6161                rpUnitsGetUnits.oct \
    62                 rpUnitsGetUnitsName.oct
     62                rpUnitsGetUnitsName.oct \
     63                rpExec.oct
    6364
    6465.PHONY: all install clean distclean
  • branches/1.4/lang/octave/src/rpExec.cc

    r5799 r5918  
    7676   char           *stdoutBuffer;
    7777   char           *stderrBuffer;
    78 
    79    pipe(stdoutPipe);
    80    pipe(stderrPipe);
     78   int             error;
     79
     80   error = pipe(stdoutPipe);
     81   error = pipe(stderrPipe);
    8182
    8283   if((pid = fork()) < 0) {
     
    250251         commandArgs = (char **)calloc(commandCell.numel()+1,sizeof(char *));
    251252         for(i1=0; i1<commandCell.numel(); i1++) {
    252             commandArg = c(i1).string_value().c_str();
     253            commandArg = commandCell(i1).string_value().c_str();
    253254            commandArgs[i1] = (char *)calloc(strlen(commandArg)+1,sizeof(char));
    254255            strcpy(commandArgs[i1],commandArg);
Note: See TracChangeset for help on using the changeset viewer.