Re: initdb failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Grittner wrote:
> "Pankaj Mandal (pmandal)"  wrote:
>  
>>     creating template1 database in
>> C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/data/base/1
>> ...
>> initdb: could not execute command
>> ""C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/bin/
>> postgres.exe" --boot -x1 -F ": No error
>>     initdb: removing contents of data directory
>> "C:/PROGRA~1/CISCOS~1/CSCONccm/objects/PostgreSQL/8.4/data"
>  
> I don't recognize this.  Anyone else?  I am curious what can cause a
> failure with a description of "No error"

This is the only matching string in initdb.c

/*
 * Open a subcommand with suitable error messaging
 */
static FILE *
popen_check(const char *command, const char *mode)
{
     FILE       *cmdfd;

     fflush(stdout);
     fflush(stderr);
     errno = 0;
     cmdfd = popen(command, mode);
     if (cmdfd == NULL)
         fprintf(stderr,
                 _("%s: could not execute command \"%s\": %s\n"),
                 progname, command, strerror(errno));
     return cmdfd;
}

So I guess the question is, what could cause popen on Windows to return
NULL, but not set errno?

Joe

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux