Welcome! Log In Create A New Profile

Advanced

Re: I want to fork a process or a thread in the nginx module, is that allowed

Piotr Sikora
May 04, 2010 11:28PM
Hi,

> I want to fork a process or a thread to do some special work, is that
> allowed? Thanks for any suggestions.

This really depends on what "special work" do you want to do. For example,
I'm forking process to copy "large files" in the background in
ngx_slowfs_cache [1], but the child process just copies file and exits right
after it, so there are no synchronization problems, etc. Anything more
complicated probably isn't very good idea, unless there is no other way
around it.

[1] http://labs.frickle.com/nginx_ngx_slowfs_cache/

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >



_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

I want to fork a process or a thread in the nginx module, is that allowed

jyf832004 3413 May 04, 2010 04:32AM

Re: I want to fork a process or a thread in the nginx module, is that allowed

Yuriy Taraday 1180 May 04, 2010 05:14AM

Re: I want to fork a process or a thread in the nginx module, is that allowed

Piotr Sikora 1541 May 04, 2010 11:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready