Yep, it does patch the worker, and it works :)
On Tue, Nov 5, 2013 at 10:38 PM, Filipe Deschamps <[email protected]> wrote: > Perfect, thanks! > > I will make the tests and post it here. > > > On Tuesday, November 5, 2013 8:19:29 PM UTC-2, Tim Caswell wrote: > >> If it monkey-patched existing modules in the current process, then you >> need to require it once per process you want patched. So in the case of >> cluster, you probably want it in the worker so that worker code gets >> patched. >> >> >> On Tue, Nov 5, 2013 at 4:15 PM, Filipe Deschamps <[email protected]>wrote: >> >>> Alan, I saw this, but I still can't fully understand. >>> >>> When working with cluster, show I require it in the main app.js file, or >>> inside the worker? >>> >>> >>> On Tue, Nov 5, 2013 at 8:10 PM, Alan Hoffmeister >>> <[email protected]>wrote: >>> >>>> https://github.com/isaacs/node-graceful-fs/blob/master/ >>>> graceful-fs.js#L1 >>>> >>>> According to this line, it does patch fs. >>>> This script is just doing minor improvements to fs so it can behave >>>> the same way on all OSs (Windows). >>>> -- >>>> Att, >>>> Alan Hoffmeister >>>> >>>> >>>> 2013/11/5 Filipe Deschamps <[email protected]>: >>>> > Can you guys help me out to understand this? >>>> > https://github.com/isaacs/node-graceful-fs >>>> > >>>> > Will this module "patch" my node? >>>> > >>>> > -- >>>> > -- >>>> > Job Board: http://jobs.nodejs.org/ >>>> > Posting guidelines: >>>> > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>>> > You received this message because you are subscribed to the Google >>>> > Groups "nodejs" group. >>>> > To post to this group, send email to [email protected] >>>> >>>> > To unsubscribe from this group, send email to >>>> > [email protected] >>>> >>>> > For more options, visit this group at >>>> > http://groups.google.com/group/nodejs?hl=en?hl=en >>>> > >>>> > --- >>>> > You received this message because you are subscribed to the Google >>>> Groups >>>> > "nodejs" group. >>>> > To unsubscribe from this group and stop receiving emails from it, >>>> send an >>>> > email to [email protected]. >>>> >>>> > For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> -- >>>> -- >>>> Job Board: http://jobs.nodejs.org/ >>>> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List- >>>> Posting-Guidelines >>>> You received this message because you are subscribed to the Google >>>> Groups "nodejs" group. >>>> To post to this group, send email to [email protected] >>>> >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>>> --- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "nodejs" group. >>>> To unsubscribe from this topic, visit https://groups.google.com/d/ >>>> topic/nodejs/wUsdJDRHmpE/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List- >>> Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected] >>> >>> To unsubscribe from this group, send email to >>> [email protected] >>> >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to a topic in the > Google Groups "nodejs" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nodejs/wUsdJDRHmpE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
