Commit f2a10860 authored by Filippos Giannakos's avatar Filippos Giannakos

xseg: Do not create posixfd directory

Do not implicitly create posixfd directory. Instead, expect it to be already
setup correctly and return an error otherwise.
parent df7dc041
......@@ -201,17 +201,12 @@ static int posixfd_remote_signal_init(void)
int r;
struct stat st;
oldumask = umask(0000);
r = mkdir(POSIXFD_DIR, S_IRWXU|S_IRWXG);
umask(oldumask);
r = stat(POSIXFD_DIR, &st);
if (r < 0) {
if (errno != EEXIST) // && isdir(POSIXFD_DIR)
return -1;
return -1;
}
r = stat(POSIXFD_DIR, &st);
if (r < 0) {
if (!S_ISDIR(st.st_mode)) {
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment