We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 0b3f7e5 commit cae9a20Copy full SHA for cae9a20
src/process.cr
@@ -81,15 +81,15 @@ class Process
81
pid = fork_internal do
82
with self yield self
83
end
84
- Process.new pid
+ new pid
85
86
87
# Duplicates the current process.
88
# Returns a `Process` representing the new child process in the current process
89
# and `nil` inside the new child process.
90
def self.fork : self?
91
if pid = fork_internal
92
93
else
94
nil
95
@@ -255,7 +255,7 @@ class Process
255
fork_error.try &.close
256
257
258
- protected def initialize(@pid)
+ private def initialize(@pid)
259
@waitpid_future = Event::SignalChildHandler.instance.waitpid(pid)
260
@wait_count = 0
261
0 commit comments