/[emacs]/emacs/src/filelock.c
ViewVC logotype

Diff of /emacs/src/filelock.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.99 by miles, Mon Sep 1 15:45:52 2003 UTC revision 1.100 by schwab, Sat Nov 27 22:09:40 2004 UTC
# Line 377  lock_file_1 (lfname, force) Line 377  lock_file_1 (lfname, force)
377    char *host_name;    char *host_name;
378    char *lock_info_str;    char *lock_info_str;
379    
380      /* Call this first because it can GC.  */
381      boot_time = get_boot_time ();
382    
383    if (STRINGP (Fuser_login_name (Qnil)))    if (STRINGP (Fuser_login_name (Qnil)))
384      user_name = (char *)SDATA (Fuser_login_name (Qnil));      user_name = (char *)SDATA (Fuser_login_name (Qnil));
385    else    else
# Line 386  lock_file_1 (lfname, force) Line 389  lock_file_1 (lfname, force)
389    else    else
390      host_name = "";      host_name = "";
391    lock_info_str = (char *)alloca (strlen (user_name) + strlen (host_name)    lock_info_str = (char *)alloca (strlen (user_name) + strlen (host_name)
392                                    + LOCK_PID_MAX + 5);                                    + LOCK_PID_MAX + 30);
393    
   boot_time = get_boot_time ();  
394    if (boot_time)    if (boot_time)
395      sprintf (lock_info_str, "%s@%s.%lu:%lu", user_name, host_name,      sprintf (lock_info_str, "%s@%s.%lu:%lu", user_name, host_name,
396               (unsigned long) getpid (), (unsigned long) boot_time);               (unsigned long) getpid (), (unsigned long) boot_time);

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26