[uWSGI] remove file after sendfile

Руслан Закиров ruz at sports.ru
Fri Mar 18 13:19:58 CET 2016


On Fri, Mar 18, 2016 at 1:56 PM, Damjan Georgievski <gdamjan at gmail.com>
wrote:

> if you have a file descriptor open you can unlink the file from the
> filesystem, the file will be actually removed once the fd is closed.


Wouldn't uwsgi cleanup my psgi application before passing name to an
"offload thread"? Also, afaik unlinking with open fd would make file not
accessible by name from the current process or any other.

Just in case people don't know what I'm talking about, we use the following
solution:
http://uwsgi-docs.readthedocs.org/en/latest/Snippets.html#x-sendfile-emulation

-- 
Руслан Закиров
Руководитель отдела разработки веб-сервисов
+7(916) 597-92-69, ruz @  <http://www.sports.ru/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20160318/b4f3c9f3/attachment.html>


More information about the uWSGI mailing list