ELM on IRISES

Kenny McDonald c60244 at ccfiris.aedc
Wed Feb 27 07:11:38 AEST 1991


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 at ccfiris.aedc                   O  O A  A O  O
                                                         O  O AAAA O  O
  LOCAL:                                                 O  O A  A O  O
  c60244 at ccfiris                                          OO  A  A  OO
                                                        ________________
                                                                       /



More information about the Comp.sys.sgi mailing list