mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Log forks.
This commit is contained in:
@@ -3,6 +3,8 @@ var cp = require('child_process')
|
||||
|
||||
var Promise = require('bluebird')
|
||||
|
||||
var log = require('./logger').createLogger('util:procutil')
|
||||
|
||||
function ExitError(code) {
|
||||
Error.call(this)
|
||||
this.name = 'ExitError'
|
||||
@@ -17,7 +19,9 @@ util.inherits(ExitError, Error)
|
||||
module.exports.ExitError = ExitError
|
||||
|
||||
// Export
|
||||
module.exports.fork = function() {
|
||||
module.exports.fork = function(filename, args) {
|
||||
log.info('Forking "%s %s"', filename, args.join(' '))
|
||||
|
||||
var resolver = Promise.defer()
|
||||
var proc = cp.fork.apply(cp, arguments)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user