No need to call exit() after pg_fatal(). Clean up a few stragglers
for consistency.
*/
case 'p':
if ((old_cluster.port = atoi(optarg)) <= 0)
- {
pg_fatal("invalid old port number\n");
- exit(1);
- }
break;
case 'P':
if ((new_cluster.port = atoi(optarg)) <= 0)
- {
pg_fatal("invalid new port number\n");
- exit(1);
- }
break;
case 'r':
/* Set mask based on PGDATA permissions */
if (!GetDataDirectoryCreatePerm(new_cluster.pgdata))
- {
- pg_log(PG_FATAL, "could not read permissions of directory \"%s\": %s\n",
- new_cluster.pgdata, strerror(errno));
- exit(1);
- }
+ pg_fatal("could not read permissions of directory \"%s\": %s\n",
+ new_cluster.pgdata, strerror(errno));
umask(pg_mode_mask);