File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -417,7 +417,8 @@ dsm_impl_posix_resize(int fd, off_t size)
417
417
* allowed SIGUSR1 to interrupt us repeatedly (for example, due to recovery
418
418
* conflicts), the retry loop might never succeed.
419
419
*/
420
- PG_SETMASK (& BlockSig );
420
+ if (IsUnderPostmaster )
421
+ PG_SETMASK (& BlockSig );
421
422
422
423
/* Truncate (or extend) the file to the requested size. */
423
424
do
@@ -455,9 +456,12 @@ dsm_impl_posix_resize(int fd, off_t size)
455
456
}
456
457
#endif /* HAVE_POSIX_FALLOCATE && __linux__ */
457
458
458
- save_errno = errno ;
459
- PG_SETMASK (& UnBlockSig );
460
- errno = save_errno ;
459
+ if (IsUnderPostmaster )
460
+ {
461
+ save_errno = errno ;
462
+ PG_SETMASK (& UnBlockSig );
463
+ errno = save_errno ;
464
+ }
461
465
462
466
return rc ;
463
467
}
You can’t perform that action at this time.
0 commit comments