Diff for /libaitio/src/exec.c between versions 1.1.2.15 and 1.1.2.16

version 1.1.2.15, 2013/12/08 20:57:32 version 1.1.2.16, 2013/12/08 21:11:54
Line 347  io_progCheck(prog_t * __restrict prg, int re) Line 347  io_progCheck(prog_t * __restrict prg, int re)
  * io_progAttach() - Attach to open program   * io_progAttach() - Attach to open program
  *   *
  * @prg = program pool   * @prg = program pool
    * @newOne = Execute new one program after attach
  * return: NULL error or !=NULL attached program handle   * return: NULL error or !=NULL attached program handle
  */   */
 #ifdef POPEN_STREAM  #ifdef POPEN_STREAM
Line 354  FILE * Line 355  FILE *
 #else  #else
 int  int
 #endif  #endif
io_progAttach(prog_t * __restrict prg)io_progAttach(prog_t * __restrict prg, int newOne)
 {  {
 #ifdef POPEN_STREAM  #ifdef POPEN_STREAM
         FILE *f = NULL;          FILE *f = NULL;
Line 382  io_progAttach(prog_t * __restrict prg) Line 383  io_progAttach(prog_t * __restrict prg)
                         break;                          break;
                 }                  }
         pthread_mutex_unlock(&prg->prog_mtx);          pthread_mutex_unlock(&prg->prog_mtx);
   
           /* execute new one program */
           if (newOne && f)
                   io_progOpen(prg, 1);
   
         return f;          return f;
 }  }

Removed from v.1.1.2.15  
changed lines
  Added in v.1.1.2.16


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>