pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:5292: Inside #if defined(_REENTRANT)
   }       close_and_exit:   /* fprintf(stderr,"Closing %d and %d\n",p->to,p->from); */       while (fd_close(p->to) && errno == EINTR) {}    while (fd_close(p->from) && errno == EINTR) {}    low_mt_lock_interpreter(); /* Can run even if threads_disabled. */    num_threads--;    mt_unlock_interpreter(); -  free((char *)p); +  free(p);    th_exit(0);    return 0;   }      /*! @decl void proxy(Stdio.File from)    *!    *! Starts a thread that asynchronously copies data from @[from]    *! to this file.    *!    *! @seealso
pike.git/src/modules/_Stdio/file.c:5339: Inside #if defined(_REENTRANT)
   Pike_error("Failed to dup proxy fd.\n");    }       p=ALLOC_STRUCT(new_thread_data);    p->from=from;    p->to=to;       num_threads++;    if(th_create_small(&id,proxy_thread,p))    { -  free((char *)p); +  free(p);    while (fd_close(from) && errno == EINTR) {}    while (fd_close(to) && errno == EINTR) {}    Pike_error("Failed to create thread.\n");    }       th_destroy(& id);    pop_n_elems(args);    push_int(0);   }