comparison lib-src/movemail.c @ 12777:96819e0ab508

(main): Mention lock file name in error message.
author Richard M. Stallman <rms@gnu.org>
date Sat, 05 Aug 1995 20:19:40 +0000
parents 80bf29e6e978
children 0464324deda7
comparison
equal deleted inserted replaced
12776:d69a2d6d1ae9 12777:96819e0ab508
235 { 235 {
236 /* Create the lock file, but not under the lock file name. */ 236 /* Create the lock file, but not under the lock file name. */
237 /* Give up if cannot do that. */ 237 /* Give up if cannot do that. */
238 desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666); 238 desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666);
239 if (desc < 0) 239 if (desc < 0)
240 pfatal_with_name ("lock file--see source file lib-src/movemail.c"); 240 {
241 char *message = (char *) malloc (strlen (tempname) + 50);
242 sprintf (message, "%s--see source file lib-src/movemail.c");
243 pfatal_with_name (message);
244 }
241 close (desc); 245 close (desc);
242 246
243 tem = link (tempname, lockname); 247 tem = link (tempname, lockname);
244 unlink (tempname); 248 unlink (tempname);
245 if (tem >= 0) 249 if (tem >= 0)