Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Squash] nits
  • Loading branch information
jasnell authored Oct 19, 2018
commit 6a75be504ecc3a9ade3b1a79b2ee4b7644c1729f
6 changes: 3 additions & 3 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ When sharing a UDP socket across multiple `cluster` workers, the
```js
const cluster = require('cluster');
const dgram = require('dgram');
if (cluster.isMaster) {
cluster.fork(); // Works ok
cluster.fork(); // Fails with EADDRINUSE
if (cluster.isMaster) {
cluster.fork(); // Works ok
cluster.fork(); // Fails with EADDRINUSE
} else {
const s = dgram.createSocket('udp4');
s.bind(1234, () => {
Expand Down