pike.git / src / modules / files / sendfile.c

version» Context lines:

pike.git/src/modules/files/sendfile.c:856:    *!    *! Setting @[len] to @expr{-1@} means send until @[from]'s end of file is    *! reached.    *!    *! @note    *! Don't use this class directly! Use @[Stdio.sendfile()] instead.    *!    *! In Pike 7.7 and later the @[callback] function will be called    *! from the backend associated with @[to].    *! +  *! @note +  *! May use blocking I/O and thus trigger process being killed +  *! with @tt{SIGPIPE@} when the other end closes the connection. +  *! Add a call to @[signal()] to avoid this. +  *!    *! @seealso    *! @[Stdio.sendfile()]    */   static void sf_create(INT32 args)   {    struct pike_sendfile sf;    int iovcnt = 0;    struct svalue *cb = NULL;    LONGEST offset, len;