[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Spawn process from a thread (ie in awful)
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Spawn process from a thread (ie in awful) |
Date: |
Tue, 23 Oct 2012 12:15:30 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Mon, Oct 22, 2012 at 10:15:36PM -0700, Thomas Hintz wrote:
> Greetings!
Greetings!
> I don't seem to be able to spawn a child process from a thread and have the
> process continue executing after the parent process terminates. This
> happens if the thread that spawns the child process is still running when
> the parent process is terminated.
I think this is normal Unix behavior; you need to set up a new process
group to avoid getting killed if the parent is killed. It's basic
daemonization.
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth