1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

Fix incorrect use of shm_unlink where unlink should be used.

Per buildfarm.
This commit is contained in:
Robert Haas 2013-10-10 10:56:19 -04:00
parent 264aa14a2f
commit 4b7b9a7904

View File

@ -864,7 +864,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, uint64 request_size,
save_errno = errno;
close(fd);
if (op == DSM_OP_CREATE)
shm_unlink(name);
unlink(name);
errno = save_errno;
ereport(elevel,