|
4 | 4 | *
|
5 | 5 | * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
|
6 | 6 | *
|
7 |
| - * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.43 2004/10/2717:17:07 momjian Exp $ |
| 7 | + * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.44 2004/10/2719:44:14 momjian Exp $ |
8 | 8 | *
|
9 | 9 | *-------------------------------------------------------------------------
|
10 | 10 | */
|
@@ -767,20 +767,20 @@ do_status(void)
|
767 | 767 | pid=get_pgpid();
|
768 | 768 | if (pid==0)/* no pid file */
|
769 | 769 | {
|
770 |
| -write_stderr(_("%s: neither postmaster nor postgres running\n"),progname); |
| 770 | +printf(_("%s: neither postmaster nor postgres running\n"),progname); |
771 | 771 | exit(1);
|
772 | 772 | }
|
773 | 773 | elseif (pid<0)/* standalone backend */
|
774 | 774 | {
|
775 | 775 | pid=-pid;
|
776 |
| -fprintf(stdout,_("%s: a standalone backend \"postgres\" is running (PID: %ld)\n"),progname,pid); |
| 776 | +printf(_("%s: a standalone backend \"postgres\" is running (PID: %ld)\n"),progname,pid); |
777 | 777 | }
|
778 | 778 | else
|
779 | 779 | /* postmaster */
|
780 | 780 | {
|
781 | 781 | char**optlines;
|
782 | 782 |
|
783 |
| -fprintf(stdout,_("%s: postmaster is running (PID: %ld)\n"),progname,pid); |
| 783 | +printf(_("%s: postmaster is running (PID: %ld)\n"),progname,pid); |
784 | 784 |
|
785 | 785 | optlines=readfile(postopts_file);
|
786 | 786 | if (optlines!=NULL)
|
|