Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jjnoakes
on Aug 20, 2014
|
parent
|
context
|
favorite
| on:
fork() can fail
Almost - the main reason for the chdir('/') is so that if you do happen to be in a mounted file system (locally or remotely), your daemon doesn't prevent the system administrator from gracefully unmounting that file system for whatever reason.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: