[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] A nuisance in Vend::Util.pm?
****** message to minivend-users from Sergio Polini <s.polini@mclink.it> ******
Mike Heins wrote:
> You can just use stop with signals:
>
> kill `cat /usr/local/minivend/etc/minivend.pid`
>
> I should look at internationalizing more of these types of error
> messages. I have been pretty religious about using the errmsg()
> routine when appropriate, but there is probably quite a bit still
> in the low level stuff that has not been done. I think the methodology
> is like you described, by error number, but that isn't too portable.
> I think there are constants like EAGAIN defined in POSIX; yup,
> use POSIX qw(:errno_h); will do it. Then the code would
> simply become:
>
> if ($! == EAGAIN) {
> return 0;
> }
>
I already experimented with POSIX, but it doesn't work :-( (I always get zero as
error code; I'm using RedHat 6.2 - Linux 2.2.14-5, Perl 5.005_03 - and Minivend
4.04.)
However, I often use Perl but I am not a guru; I'd like to know how you would
patch Util.pm (and Server.pm, BTW) to POSIXize those errore codes. Thanks in
advance.
For now, I've created a new user (minivend.minivend), "delocalized" it
(LANG=en_US, LC_ALL=en_US), and made it the Minivend owner. It works, of course
:-) Thanks Joachim!
...and thanks to all the list members for sharing their experience.
Sergio
--------------------------------------------------------------------
Sergio Polini "The box said
e-mail : s.polini@mclink.it `Requires Windows 95, NT or
PGP key: http://pgp5.ai.mit.edu better.' So I installed Linux."
--------------------------------------------------------------------
-
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