[ic] Restart and stop problems (multilple processes)

Joachim Leidinger interchange-users@icdevgroup.org
Thu Feb 6 10:56:01 2003


Mike Heins wrote:
....
>>What I have done is verify that the default install of interchange on my
>>solaris box uses the flock() function to lock the pid file.  I've also
>>created a mini perl program that just locks files based off the code in
>>interchange.  The file locking works fine until I throw a fork() in
>>it...
>>
>>Anyway, I hope this helps a bit.  
> 
> 
> Turns out the files lock fine, but LOCK_NB is not working, at least on the
> solaris server I tested on (thanks Dorothy). It doesn't work no matter the
> state of fork. In any case, grab_pid happens in the context of the last
> fork, as I thought.
> 
> I could add a -badlock option at the commandline, but it would seem
> to make sense to just fix Perl on the affected systems. 

Hmmm...It seems to me, I've the same behavior with FreeBSD and perl 5.8. 
How to fix perl? Where to look into?

Thanks!

Joachim




-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing.
[joachim@leidinger.net]
http://www.leidinger.net