[SERVER-9239] Mongo Server does not close stdout when using --fork and --syslog Created: 04/Apr/13 Updated: 11/Jul/16 Resolved: 11/Jul/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging |
| Affects Version/s: | 2.2.4, 2.4.1 |
| Fix Version/s: | 2.5.1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Benedikt Waldvogel | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The mongod server does not daemonize correctly when using --fork and --syslog: It does not close stdout. This bug causes a hang when starting mongod via SSH:
Pretty much the same bug already existed and was fixed in an older version of MongoDB (without --syslog): |
| Comments |
| Comment by Andy Schwerin [ 11/Jul/13 ] |
|
Resolved coincidentally by |
| Comment by Benedikt Waldvogel [ 04/Apr/13 ] |
|
My proposed fix: https://github.com/mongodb/mongo/pull/408 |