Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reverted flock fd anti-leak
  • Loading branch information
unbit committed Mar 9, 2013
1 parent 7f54f50 commit c5fe8c6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/uwsgi.c
Expand Up @@ -3826,10 +3826,8 @@ void uwsgi_opt_flock(char *opt, char *filename, void *none) {

if (uwsgi_fcntl_is_locked(fd)) {
uwsgi_log("uWSGI ERROR: %s is locked by another instance\n", filename);
close(fd);
exit(1);
}
close(fd);
}

void uwsgi_opt_flock_wait(char *opt, char *filename, void *none) {
Expand All @@ -3841,10 +3839,8 @@ void uwsgi_opt_flock_wait(char *opt, char *filename, void *none) {
}

if (uwsgi_fcntl_lock(fd)) {
close(fd);
exit(1);
}
close(fd);
}

// report CFLAGS used for compiling the server
Expand Down

0 comments on commit c5fe8c6

Please sign in to comment.