Handle child process exit codes

This commit is contained in:
2020-12-22 20:01:59 +01:00
parent 815fa32d14
commit 14bcc47db2
4 changed files with 70 additions and 46 deletions

View File

@ -121,7 +121,7 @@ int uri_cache_init(http_uri *uri) {
} else {
struct stat statbuf;
stat(uri->filename, &statbuf);
if (uri->meta->stat.st_mtimensec != statbuf.st_mtimensec) {
if (memcmp(&uri->meta->stat.st_mtime, &statbuf.st_mtime, sizeof(statbuf.st_mtime)) != 0) {
if (cache_update_entry(i, uri->filename) != 0) {
return -1;
}