Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Custom credit card processor (more information)



******    message to minivend-users from David Babler <dbabler@Rigel.orionsys.com>     ******



On Thu, 25 May 2000, Michael Toulouse wrote:

> ******    message to minivend-users from Michael Toulouse <toulouse@ai.org>     ******
> 
> Still working on that problem with my custom credit card processor (in
> which the server hangs after correctly processing the submission).
> 
> Here's the *specific place* that it's hanging, in Server.pm, in the
> neighborhood of line 1150-1175:
> 
>     undef $::Instance;
> ==> select(undef,undef,undef,0.050) until getppid == 1; <==  HANGS
> HERE!!!
>     if ($Global::PIDcheck) {
>       unlink_pid() and &$Sig_dec;
>     }
> 
> 
> Can anybody help?  I would greatly appreciate it!

I can tell you what the code is trying to do, though not necessarily why
it's failing for you. It is waiting for its parent process to die. It is
checking every 50 milliseconds for that to happen. I'd guess that either
its parent isn't dying (getppid never is equal to 1) or your OS doesn't
exhibit that exact behavior, or the init process isn't process ID 1. You
might try to spin a little slower ( 'select(undef,undef,undef,1.0)...')
and spit out what getppid is prior to the undef and within the loop
itself.

(Gee, a question I can almost answer!>

-Dave

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: