Welcome! Log In Create A New Profile

Advanced

Starting a Thread when Nginx starts

August 01, 2011 12:31AM
Hi,
I am new to Nginx. Have gone through evanmiller blog and nginxguts to write my own module. Wrote a hello module which is working fine.
I extended the hello module and in the http handler, it could start the thread. I have used pthread library for this. Now I want to start a thread of my own along with nginx and not with a http handler.

1. What modification is required to make it?
2. How to stop the thread when nginx is exiting?
3. Is there a different way of doing it other than pthread for a background activity.
Subject Author Posted

Starting a Thread when Nginx starts

sahyagiri August 01, 2011 12:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready