Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move save_pid before setuid may better #362

Open
GoogleCodeExporter opened this issue Nov 13, 2015 · 1 comment
Open

move save_pid before setuid may better #362

GoogleCodeExporter opened this issue Nov 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. /usr/bin/memcached -p 11211 -d -P /var/run/memcached.pid -u nobody
2. ls /var/run/memcached.pid ## error

What is the expected output? What do you see instead?
pidfile was not created for Permission denied, pidfile should be written before 
setuid

What version of the product are you using? On what operating system?
v1.4.18 on centos 6.4

Original issue reported on code.google.com by [email protected] on 22 Apr 2014 at 8:13

@GoogleCodeExporter
Copy link
Contributor Author

There're a handful of things open for this...

What we really need to do is to keep some parent/child communications open 
during fork and bubble errors to the parent before letting it die. There're a 
few error conditions where flipping the order just makes different failures 
invisible.

Original comment by [email protected] on 22 Apr 2014 at 8:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant