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 [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/filelock.c [emacs-unicode-2]
Date: Wed, 08 Dec 2004 00:48:30 -0500

Index: emacs/src/filelock.c
diff -c emacs/src/filelock.c:1.98.6.2 emacs/src/filelock.c:1.98.6.3
*** emacs/src/filelock.c:1.98.6.2       Fri Apr 16 12:50:46 2004
--- emacs/src/filelock.c        Wed Dec  8 05:02:20 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]