node/lib/internal/cluster
Joyee Cheung be525d7d04
src: consolidate exit codes in the code base
Add an ExitCode enum class and use it throughout the code base
instead of hard-coding the exit codes everywhere. At the moment,
the exit codes used in many places do not actually conform to
what the documentation describes. With the new enums (which
are also available to the JS land as constants in an internal
binding) we could migrate to a more consistent usage of the
codes, and eventually expose the constants to the user land
when they are stable enough.

PR-URL: https://github.com/nodejs/node/pull/44746
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
2022-10-06 12:41:16 +00:00
..
child.js src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
primary.js cluster: use inspector utils 2022-09-13 06:41:19 +00:00
round_robin_handle.js cluster: fix cluster rr distribute error 2022-08-28 15:03:12 +00:00
shared_handle.js cluster: refactor to use more primordials 2020-11-13 23:35:43 +00:00
utils.js cluster: fix comment regarding child_process file 2021-08-25 08:32:52 -07:00
worker.js cluster: use kEmptyObject 2022-06-11 12:18:12 +02:00