File: cluster.coffee

package info (click to toggle)
coffeescript 1.12.8~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,740 kB
  • sloc: makefile: 53; xml: 9; sh: 6
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Cluster Module
# ---------

return if testingBrowser?

cluster = require 'cluster'

if cluster.isMaster
  test "#2737 - cluster module can spawn workers from a coffeescript process", ->
    cluster.once 'exit', (worker, code) ->
      eq code, 0

    cluster.fork()
else
  process.exit 0