Re: postgresql-common et python-uno (ligne 63)

Top Page

Reply to this message
Author: Mehdi
Date:  
To: guilde, Christian Bayle
Old-Topics: Re: postgresql-common et python-uno
Subject: Re: postgresql-common et python-uno (ligne 63)



Toujours pas formaté :-) 
de la ligne 61: 
        #################################################
# Check whether a pid file is present and belongs to a running postmaster.
# Arguments: <pid file path>
sub check_running_postmaster {
    my $pid = get_running_pid $_[0];
    if (defined $pid) {
        if (open PS, '-|', '/bin/ps', '-o', 'comm', 'h', 'p', $pid) {
            my $process = <PS>;
            chomp $process if defined $process;
            close PS;
            if (defined $process and ($process eq 'postmaster' or $process eq 'postgres')) {
                return 1;
            }
        } else {
            error "Could not exec /bin/ps";
        }
    }
    return 0;
        ####################################################


> Sinon,
>
> Il y a quoi sur la ligne 63 de ton /usr/bin/pg_ctlcluster
> ?
>
> Christian