Summary: setting flag of O_RDWR by F_SETFL is no effect. it's ignored.
@fix
Reviewers: gwanglim, devilhorns
Reviewed By: devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1695
return -1;
}
- if ((fl = fcntl(fd, F_GETFL)) < 0)
- {
- ERR("Failed to get file flags: %m");
- goto flag_err;
- }
-
- fl = (O_RDWR | O_NONBLOCK);
-
- if ((ret = fcntl(fd, F_SETFL, fl)) < 0)
- {
- ERR("Failed to set file flags: %m");
- goto flag_err;
- }
-
if ((fl = fcntl(fd, F_GETFD)) < 0)
{
ERR("Failed to get file fd: %m");