emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/filelock.c [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/filelock.c [lexbind]
Date: Wed, 08 Dec 2004 18:57:11 -0500

Index: emacs/src/filelock.c
diff -c emacs/src/filelock.c:1.96.4.2 emacs/src/filelock.c:1.96.4.3
*** emacs/src/filelock.c:1.96.4.2       Tue Oct 14 23:16:44 2003
--- emacs/src/filelock.c        Wed Dec  8 23:36:24 2004
***************
*** 377,382 ****
--- 377,385 ----
    char *host_name;
    char *lock_info_str;
  
+   /* Call this first because it can GC.  */
+   boot_time = get_boot_time ();
+ 
    if (STRINGP (Fuser_login_name (Qnil)))
      user_name = (char *)SDATA (Fuser_login_name (Qnil));
    else
***************
*** 386,394 ****
    else
      host_name = "";
    lock_info_str = (char *)alloca (strlen (user_name) + strlen (host_name)
!                                 + LOCK_PID_MAX + 5);
  
-   boot_time = get_boot_time ();
    if (boot_time)
      sprintf (lock_info_str, "address@hidden:%lu", user_name, host_name,
             (unsigned long) getpid (), (unsigned long) boot_time);
--- 389,396 ----
    else
      host_name = "";
    lock_info_str = (char *)alloca (strlen (user_name) + strlen (host_name)
!                                 + LOCK_PID_MAX + 30);
  
    if (boot_time)
      sprintf (lock_info_str, "address@hidden:%lu", user_name, host_name,
             (unsigned long) getpid (), (unsigned long) boot_time);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]