From 3529a0c97e2595032cb50a82007c5bcf40341100 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Fri, 7 Jul 2023 09:29:50 -0400 Subject: [PATCH] dpmi: shorten shmname for ldt_alias On Mac, PSHMNAMLEN is only 31, so change the shmname from something like /dosemu_dpmishm_16495_ldt_alias_16495FPd to /dosemu_ldt_alias_16495FPd which is still sufficiently unique. --- src/dosext/dpmi/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dosext/dpmi/memory.c b/src/dosext/dpmi/memory.c index d71b180ed..6146fbd36 100644 --- a/src/dosext/dpmi/memory.c +++ b/src/dosext/dpmi/memory.c @@ -599,7 +599,7 @@ dpmi_pm_block *DPMI_mallocShared(dpmi_pm_block_root *root, return NULL; } - asprintf(&shmname, "/dosemu_dpmishm_%d_%s", getpid(), name); + asprintf(&shmname, "/dosemu_%s", name); if (init) { oflags |= O_CREAT; if (flags & SHM_EXCL)