Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34616 > unrolled thread
| Started by | andrea crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2012-12-11 13:25 +0000 |
| Last post | 2012-12-12 15:23 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: forking and avoiding zombies! andrea crotti <andrea.crotti.0@gmail.com> - 2012-12-11 13:25 +0000
Re: forking and avoiding zombies! Nobody <nobody@nowhere.com> - 2012-12-12 15:23 +0000
| From | andrea crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-12-11 13:25 +0000 |
| Subject | Re: forking and avoiding zombies! |
| Message-ID | <mailman.724.1355232340.29569.python-list@python.org> |
Ah sure that makes sense! But actually why do I need to move away from the current directory of the parent process? In my case it's actually useful to be in the same directory, so maybe I can skip that part, or otherwise I need another chdir after..
[toc] | [next] | [standalone]
| From | Nobody <nobody@nowhere.com> |
|---|---|
| Date | 2012-12-12 15:23 +0000 |
| Message-ID | <pan.2012.12.12.15.23.59.128000@nowhere.com> |
| In reply to | #34616 |
On Tue, 11 Dec 2012 13:25:36 +0000, andrea crotti wrote: > But actually why do I need to move away from the current directory of the > parent process? It's not required, it's just "best practice". Often, the current directory is simply whichever directory it happened to inherit from the shell which spawned it. So long as that directory continues to be used as the daemon's current directory, the filesystem on which it resides cannot be unmounted. So daemons normally change to the root directory (or to some other directory, e.g. one which they actually need to use) in order to "release" the directory from which they were initially started.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web