Branch: Tag:

2015-10-22

2015-10-22 09:47:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Documentation [Stdio.sendfile]: Document risk of SIGPIPE.

Make sure that users of sendfile() are aware of [bug 7582 (#7582)] behavior.

867:    *! 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()]    */