diff options
| author | Glenn Morris | 2012-08-10 00:07:07 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-08-10 00:07:07 -0700 |
| commit | 0aa8781fc089f32f11bf28a6f0130678618d82ac (patch) | |
| tree | 4c678983dc0c68cb496195b23c73086e1fdb4ead /lib-src | |
| parent | 39cb9e56e9171b479892be9adaf656d84c9d2ed5 (diff) | |
| download | emacs-0aa8781fc089f32f11bf28a6f0130678618d82ac.tar.gz emacs-0aa8781fc089f32f11bf28a6f0130678618d82ac.zip | |
Comments
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/movemail.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 3ea4f4521c1..32d32e69abf 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | 22 | ||
| 23 | /* Important notice: defining MAIL_USE_FLOCK or MAIL_USE_LOCKF *will | 23 | /* Important notice: defining MAIL_USE_FLOCK or MAIL_USE_LOCKF *will |
| 24 | cause loss of mail* if you do it on a system that does not normally | 24 | cause loss of mail* if you do it on a system that does not normally |
| 25 | use flock as its way of interlocking access to inbox files. The | 25 | use flock/lockf as its way of interlocking access to inbox files. The |
| 26 | setting of MAIL_USE_FLOCK and MAIL_USE_LOCKF *must agree* with the | 26 | setting of MAIL_USE_FLOCK and MAIL_USE_LOCKF *must agree* with the |
| 27 | system's own conventions. It is not a choice that is up to you. | 27 | system's own conventions. It is not a choice that is up to you. |
| 28 | 28 | ||
| @@ -109,6 +109,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 109 | #include <sys/locking.h> | 109 | #include <sys/locking.h> |
| 110 | #endif | 110 | #endif |
| 111 | 111 | ||
| 112 | /* If your system uses the `flock' or `lockf' system call for mail locking, | ||
| 113 | define MAIL_USE_SYSTEM_LOCK. If your system type should always define | ||
| 114 | MAIL_USE_LOCKF or MAIL_USE_FLOCK but configure does not do this, | ||
| 115 | please make a bug report. */ | ||
| 116 | |||
| 112 | #ifdef MAIL_USE_LOCKF | 117 | #ifdef MAIL_USE_LOCKF |
| 113 | #define MAIL_USE_SYSTEM_LOCK | 118 | #define MAIL_USE_SYSTEM_LOCK |
| 114 | #endif | 119 | #endif |
| @@ -289,13 +294,7 @@ main (int argc, char **argv) | |||
| 289 | so it can create lock files properly. | 294 | so it can create lock files properly. |
| 290 | 295 | ||
| 291 | You might also wish to verify that your system is one which | 296 | You might also wish to verify that your system is one which |
| 292 | uses lock files for this purpose. Some systems use other methods. | 297 | uses lock files for this purpose. Some systems use other methods. */ |
| 293 | |||
| 294 | If your system uses the `flock' system call for mail locking, | ||
| 295 | define MAIL_USE_SYSTEM_LOCK in config.h and recompile movemail. | ||
| 296 | If your system type should always define MAIL_USE_SYSTEM_LOCK | ||
| 297 | but does not, send a bug report to bug-gnu-emacs@gnu.org so we | ||
| 298 | can change the default in configure. */ | ||
| 299 | 298 | ||
| 300 | inname_len = strlen (inname); | 299 | inname_len = strlen (inname); |
| 301 | lockname = xmalloc (inname_len + sizeof ".lock"); | 300 | lockname = xmalloc (inname_len + sizeof ".lock"); |