Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Will Fatherley
It’s not the point of this distribution list to discuss Perl, but fork will return the process id for both processes. A simple pattern for the source code looks like: pid = fork(); if (pid==0){print "do the child things";} else {print "do parent things"} You want to aim your script semantics acco

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
It might be interesting to know how "fork" works... On Fri, 29 Sept 2023, 19:56 Sreenivasulu Alapaka, < sreenivasulu.alapaka...@gmail.com> wrote: > Yes, Deepak > the parent and child process are derived from same Base class. > i defined a function name main in base class with empty implememationa

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Sreenivasulu Alapaka
Yes, Deepak the parent and child process are derived from same Base class. i defined a function name main in base class with empty implememationa and same got implemented for both parent and child in their own module. Below is a skeleton of code. the parent process is spawned while bootstrapping th

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
Obviously there is a common function which is being called by your server, client threads. You will have to share your code for us to find out what's going on. On Fri, 29 Sept 2023, 17:08 Sreenivasulu Alapaka, < sreenivasulu.alapaka...@gmail.com> wrote: > Hi Deepak, > > > *Client Monitor Workers

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Sreenivasulu Alapaka
Hi Deepak, *Client Monitor Workers is application specific log. This message will be logged by the parent process in my application but not the child process. In the issue state, I am seeing the * *Client Monitor Workers in both parent and child logs as the child is executing the tasks of

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 4:35 PM Sreenivasulu Alapaka < sreenivasulu.alapaka...@gmail.com> wrote: > Hi Deepak, > > Please find the logs below. > Parent task is to monitor the workers(childs) and then > remove/start additional workers based on the load. >

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Sreenivasulu Alapaka
Hi Deepak, Please find the logs below. Parent task is to monitor the workers(childs) and then remove/start additional workers based on the load. its performing its task. Parent process logs = Wed Sep 27 20

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 4:15 PM Sreenivasulu Alapaka < sreenivasulu.alapaka...@gmail.com> wrote: > Hi Deepak, > > I have specific logs for parent and child process and am able > to see the logs of parent process dumped in child process log with child > process id. > > Please share the

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Sreenivasulu Alapaka
Hi Deepak, I have specific logs for parent and child process and am able to see the logs of parent process dumped in child process log with child process id. On Fri, Sep 29, 2023 at 3:58 PM Deepak Goel wrote: > > > On Fri, Sep 29, 2023 at 3:52 PM Sreenivasulu Alapaka < > sreenivasul

Re: [users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Deepak Goel
On Fri, Sep 29, 2023 at 3:52 PM Sreenivasulu Alapaka < sreenivasulu.alapaka...@gmail.com> wrote: > Hi Team, > > I am using httpd and mod_perl libraries to spawn the process to > execute the tasks. httpd will spawn a process which is parent and it will > spawn the other child process to per

[users@httpd] Child process executing tasks of parent process

2023-09-29 Thread Sreenivasulu Alapaka
Hi Team, I am using httpd and mod_perl libraries to spawn the process to execute the tasks. httpd will spawn a process which is parent and it will spawn the other child process to perform the tasks. The parent process job is to monitor the child process and the child process has