Skip to content

Wrong example code for daemon. Printing to stdout without setting it to any file after daemon #30

@goelvivek

Description

@goelvivek
// this code is run twice
// see implementation notes below
console.log(process.pid);

// after this point, we are a daemon
require('daemon')();

//As stdout is closed here. process.pid will not get printed anywhere. 
console.log(process.pid);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions