Remove EINTR checking for open(2)
open(2) should only interrupt on "slow" devices, afaik... [mk: still using fopen()]
This commit is contained in:
parent
5cc5c37856
commit
260e1a9037
@ -968,7 +968,7 @@ int writeDirectoryDB(void)
|
|||||||
|
|
||||||
DEBUG("writing DB\n");
|
DEBUG("writing DB\n");
|
||||||
|
|
||||||
while (!(fp = fopen(dbFile, "w")) && errno == EINTR);
|
fp = fopen(dbFile, "w");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
ERROR("unable to write to db file \"%s\": %s\n",
|
ERROR("unable to write to db file \"%s\": %s\n",
|
||||||
dbFile, strerror(errno));
|
dbFile, strerror(errno));
|
||||||
|
@ -55,8 +55,7 @@ void write_state_file(void)
|
|||||||
|
|
||||||
if (!sfpath)
|
if (!sfpath)
|
||||||
return;
|
return;
|
||||||
while (!(fp = fopen(sfpath, "w")) && errno == EINTR);
|
fp = fopen(sfpath, "w");
|
||||||
|
|
||||||
if (mpd_unlikely(!fp)) {
|
if (mpd_unlikely(!fp)) {
|
||||||
ERROR("problems opening state file \"%s\" for writing: %s\n",
|
ERROR("problems opening state file \"%s\" for writing: %s\n",
|
||||||
sfpath, strerror(errno));
|
sfpath, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user