[Top][All Lists]

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

Re: [Dolibarr-dev] dol_getmypid

From: Doursenaud , Raphaël
Subject: Re: [Dolibarr-dev] dol_getmypid
Date: Mon, 4 Aug 2014 12:08:49 +0200

I don't think using dol_getmypid in scripts is a wise idea.
The whole purpose of outputting the PID in the CLI is to be able to kill the process. We don't want to display a random number!
People having the right to execute scripts on their hosting should have the right to use the getmypid() function anyway.

Also, the getmypid usage in TCPDF is just to get some entropy to generate a random seed. We could have removed it altogether because there is already quite a lot of entropy in the other parameters inferred.

My 2 cents.

This is a verbatim copy of my comment at


2014-08-01 9:44 GMT+02:00 Florian HENRY <address@hidden>:
Hello Marcos

It come from the french forum (
Some free hosting service remove getmypid for security reason. As this is not a real must have for dolibarr running, a developper send this pull request, and Laurent integrate it.

Florian Henry
+33 6 03 76 48 07
Twitter : @_Open_Concept_
Google+ :
Le 31/07/2014 20:26, Marcos García a écrit :
Hi all:

I've noticed a PR made by frederic ( was accepted, and so getmypid was renamed to dol_getmypid.

My question is: why was that made? The check if function does not exists before recreating the function getmypid wasn't enough?

I brought the discussion to the ML because I think it is a better place to discuss this things.

Marcos García

Dolibarr-dev mailing list

Dolibarr-dev mailing list

Raphaël Doursenaud
Directeur technique (CTO)
Expert certifié en déploiement Google Apps
+33 (0)5 35 53 97 13 - +33 (0)6 68 48 20 10
Technopole Hélioparc
2 avenue du Président Pierre Angot
64053 PAU CEDEX 9
SARL au capital de 7 500 € - R.C.S. PAU 528 995 921

reply via email to

[Prev in Thread] Current Thread [Next in Thread]