Project

General

Profile

Actions

Bug #1403

closed

Process.daemon should do a double fork to avoid problems with controlling terminals

Added by gwright (Gary Wright) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9
Backport:
[ruby-core:23305]

Description

=begin
Standard practice when 'daemonizing' is to do a second fork so that the final process is no longer a session leader and therefore can't acquire a new controlling terminal.

See Stevens, Advanced Programming in the Unix Environment for details.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0