mgirod / clearcase-cpan

Automatically exported from code.google.com/p/clearcase-cpan
0 stars 0 forks source link

ClearCase::Argv, ipc mode: fork results in wrong reference count #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ClearCase::Argv->ipc(1)
2. fork
3. exit the child, and run hostinfo in the parent

What is the expected output?

xxx: ClearCase 7.0.1.0-IFIX01 (SunOS 5.10 Generic_118833-24 sun4u)

What do you see instead?

Broken Pipe

Please use labels and text to provide additional information.

r301

Overloading fork to double the reference count would work once.
One should then also overload exec to divide it by two.
In any case, after two forks, the count would be wrong somewhere.
One could maybe give the user a function to set the reference count?
Otherwise, the workaround for now is to drop the count down to 0,
with ipc(0) on all the ClearCase::Argv objects plus the class itself.

Original issue reported on code.google.com by marc.girod on 5 May 2009 at 1:33

GoogleCodeExporter commented 9 years ago

Original comment by marc.girod on 5 May 2009 at 1:34