|Summary:||ASTERISK-06912: incorrect PID display for asterisk -r for forked asterisk|
|Reporter:||Tzafrir Cohen (tzafrir)||Labels:|
|Date Opened:||2006-05-07 05:58:16||Date Closed:||2006-05-07 07:52:25|
|Description:||Asterisk reports its original PID (before the fork) to any remote client connecting to it with asterisk -r .|
if the main Asterisk process does not daemonise: no problem. If it does, mainpid is not updated with the new value of the PID.
# kill asterisk
The two PIDs displayed are not the same.
****** ADDITIONAL INFORMATION ******
I haven't checked trunk, but from the code I believe that the problem is still there.
|Comments:||By: Andrey S Pankov (casper) 2006-05-07 07:29:21|
Yes, you are right.
By: Andrey S Pankov (casper) 2006-05-07 07:43:51
It's not hard to reset 'ast_mainpid = getpid()', but there are questions here...
I'm working on this :)
By: BJ Weschke (bweschke) 2006-05-07 07:52:25
Fixed in 1.2 and /trunk. Thanks!