mirror of
https://github.com/donl/rmilter.git
synced 2026-06-30 06:12:17 -06:00
Always use MAP_SHARED.
This commit is contained in:
parent
3d7b91cfb4
commit
192f4b2ba5
1 changed files with 2 additions and 2 deletions
|
|
@ -396,7 +396,7 @@ send_beanstalk_copy (const struct mlfi_priv *priv, struct beanstalk_server *srv)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((map = mmap (NULL, st.st_size, PROT_READ, 0, fd, 0)) == MAP_FAILED) {
|
||||
if ((map = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
|
||||
msg_err ("send_beanstalk_copy: cannot mmap file %s, %s", priv->file, strerror (errno));
|
||||
close (fd);
|
||||
return;
|
||||
|
|
@ -474,7 +474,7 @@ send_beanstalk (const struct mlfi_priv *priv)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((map = mmap (NULL, priv->eoh_pos, PROT_READ, 0, fd, 0)) == MAP_FAILED) {
|
||||
if ((map = mmap (NULL, priv->eoh_pos, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
|
||||
msg_err ("send_beanstalk: cannot mmap file %s, %s", priv->file, strerror (errno));
|
||||
close (fd);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue