]> git.eshelyaron.com Git - emacs.git/commit
Provide for negative PIDs on MS Windows
authorPo Lu <luangruo@yahoo.com>
Tue, 11 Jun 2024 02:04:16 +0000 (10:04 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Jun 2024 09:27:29 +0000 (11:27 +0200)
commit973d2011a7165e9790ed645d6b286c0803f847f7
tree0ed2128808c27ec70c2bc90f752f431752bd7b01
parent913d41f39f82f3886d05d33253586b6df064fee9
Provide for negative PIDs on MS Windows

* src/filelock.c (pid_t, getpid_for_lock, pidintmax, EPRIdMAX):
New macros; define to unsigned long or corresponding values if
WINDOWSNT.
(lock_file_1, current_lock_owner): Replace intmax_t, getpid,
pid_t and the like with the aforementioned macros.  (bug#71477)

(cherry picked from commit 9e96fbfd855bf0acc005b2b0973c2a9aef7cdcd2)
src/filelock.c