Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!ccfiris.aedc!c60244 From: c60244@ccfiris.aedc (Kenny McDonald) Newsgroups: comp.sys.sgi Subject: Re: ELM on IRISES Message-ID: <9102262011.AA04235@ccfiris.aedc> Date: 26 Feb 91 20:11:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 51 I traced my problem/error with filter from elm-2.3 to the following section of ~/filter/lock.c which was not opening the lock file: ------------------------------------------------------------------------------- >> while ((ret = open(lockfile, O_WRONLY | O_CREAT | O_EXCL, 0444)) < 0 >> && attempts++ < 10) { >> sleep(3); /* wait three seconds each pass, okay?? */ ------------------------------------------------------------------------------- It was trying to open a file in /usr/mail/username.lock as you can see from the following section of code taken from ~/filter/lock.c also. I commented out this file name and named the lock file /tmp/username.lock. This seems to be working now. If anyone has any suggestions/comments on this please reply. >> >> char * >> mk_lockname(home, user) >> char *home, *user; >> { >> /** Create the proper name of the lock file for file_to_lock. >> Return lock_name for informational purposes. >> **/ >> >> #ifdef XENIX >> /* lock is /tmp/[basename of file_to_lock].mlk */ >> sprintf(lockfile, "/tmp/%.10s.mlk", user); >> #else >> /* lock is [file_to_lock].lock */ >>++ /*sprintf(lockfile, "%s%s.lock", home, user);*/ >>++ sprintf(lockfile, "/tmp/%s.lock", user); >> #endif >> return(lockfile); >> } >> Thanks anyway. vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | Kenneth M. McDonald * OAO Corp * Arnold Engineering Development Center | | MS 120 * Arnold AFS, TN 37389-9998 * (615) 454-3413 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNET: OO AA OO @aedc-vax.af.mil:c60244@ccfiris.aedc O O A A O O O O AAAA O O LOCAL: O O A A O O c60244@ccfiris OO A A OO ________________ / Brought to you by Super Global Mega Corp .com