pike.git / lib / modules / Stdio.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Stdio.pmod/module.pmod:3322:   //! @[main()] must have returned @expr{-1@}, or @[Pike.DefaultBackend]   //! get called in some other way).   //!   //! In some cases, the backend must also be active for any sending to   //! be performed at all.   //!   //! In Pike 7.4.496, Pike 7.6.120 and Pike 7.7 and later the backend   //! associated with @[to] will be used rather than the default backend.   //! Note that you usually will want @[from] to have the same backend as @[to].   //! + //! @note + //! The low-level sending may be performed with blocking I/O calls, and + //! thus trigger the process being killed with @tt{SIGPIPE@} when the + //! peer closes the other end. Add a call to @[signal()] to avoid this. + //!   //! @bugs   //! FIXME: Support for timeouts?   //!   //! @seealso   //! @[Stdio.File->set_nonblocking()]   //!   object sendfile(array(string) headers,    File from, int offset, int len,    array(string) trailers,    File to,