Opened 19 years ago
Closed 19 years ago
#1852 closed defect (fixed)
tracd fails when running as a daemon
Reported by: | Matthew Good | Owned by: | Christian Boos |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | web frontend/tracd | Version: | devel |
Severity: | critical | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Running tracd with the "-d" option starts it as a daemon process, but every request fails without a response. On the command line I see "Unhandled exception in thread started by" which also indicates that the process has not actually been fully daemonized (I know that there's a cookbook recipie on how to do this that I'll check tomorrow).
In trying to debug the problem I commented the lines that close stdin, stdout and stderr so that I could see more information, and it worked again, so it's likely to be a problem with trying to write to these closed streams.
Attachments (0)
Change History (4)
comment:1 by , 19 years ago
comment:3 by , 19 years ago
Owner: | changed from | to
---|---|
Priority: | normal → high |
Status: | new → assigned |
Looks good.
The code below will redirect the streams to /dev/null and it will work again. I'm not sure if this code is windows comptatible tho.