Guillem Jover
|
30e328cbf1
|
Do not close file descriptors while scanning the /proc filesystem
Closing file descriptors changes the content of the fd directories in
the /proc filesystem, which means readdir() might get very confused.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85663
|
2015-09-23 07:59:34 +02:00 |
|
Guillem Jover
|
4cc43915f2
|
Move procfs based implementation into a new closefrom_procfs() function
|
2015-09-23 07:59:34 +02:00 |
|
Guillem Jover
|
34df142665
|
Refactor file descriptor closure into a new closefrom_close()
|
2015-09-23 07:59:34 +02:00 |
|
Guillem Jover
|
3881c4fc68
|
Update closefrom() function
Import from sudo. Adapt the build system to detect the required features.
|
2015-09-23 07:59:34 +02:00 |
|
Guillem Jover
|
943939d0e5
|
Add new closefrom() function
Code taken from sudo, man page from FreeBSD.
|
2012-05-29 04:36:23 +02:00 |
|