Slide 44
Slide 44 text
var child = require('child_process')
var byline = require('./byline')
/**
* Callback for the request.
*/
var callback
/**
* Child process for binary I/O.
*/
var proc = child.spawn('./main', { stdio: ['pipe', 'pipe', process.stderr] })
proc.on('error', function(err){
console.error('[shim] error: %s', err)
process.exit(1)
})
proc.on('exit', function(code, signal){
console.error('[shim] exit: code=%s signal=%s', code, signal)
process.exit(1)
})
index.js
ࢠϓϩηεͰ
(P NBJO
Λಈ͔ͯ͠
ϓϩηεؒ௨৴Λ͢Δ
ඪ४ೖྗ TUEJO
ඪ४ग़ྗ TUEPVU
ඪ४Τϥʔग़ྗ TUEFSS