On 14 Sep 2015, at 14:21, Liam Hoekenga <li...@umich.edu> wrote:
> I'm writing a new factor.  I'm looking at a previous scripted factor, and it 
> includes:
> 
>     pid = os.fork()
>     if (pid != 0):
>         #This is the name of factor reported to cosign
>         print('factor')
>         sys.exit(0)
> 
> The author is no longer here.  Why would they do this?  Is this a good 
> practice to follow?

Does the child do something?  Clean something up?  From the CGI’s perspective, 
the factor is done after the exit, but there’s an opportunity for the child of 
the factor to continue doing something.  Without more context it’s not possible 
to say whether this code is good.

:wes
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Cosign-discuss mailing list
Cosign-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cosign-discuss

Reply via email to