Page 1 of 1

Add process ID to the STATUS file.

Posted: Mon Jul 19, 2010 1:36 am
by spamrefuse
Hi,

On my system often there are several instances running of abinit.
Occasionally I have to kill one of those abinits running.

It is then difficult to find out which process id (PID) I should kill.
If the STATUS file would also show the PID of the running abinit,
that would make life much easier.

Is it possible to add the PID in the STATUS file?

Regards,
Rob.

Re: Add process ID to the STATUS file.

Posted: Fri Jul 23, 2010 3:43 pm
by pouillon
Accessing the PID would require writing some code in C and consequently add dependencies of Abinit to some C libraries, which would somewhat decrease the portability and further increase the complexity of the build process.

For these reasons, I would not do it, even if the idea itself seems nice to me.

Re: Add process ID to the STATUS file.

Posted: Mon Jul 26, 2010 8:22 am
by pmanglade
Hi Yann,

I've almost never had a look to the build system but would it be difficult to test if a simple fortran program calling "getpid()" compile and then to choose whether the available getpid() shall be compiled or a dummy function returning 0 ?

regards

PMA

Re: Add process ID to the STATUS file.

Posted: Wed Aug 04, 2010 6:50 pm
by pouillon
That's an idea. I could declare a CPP option called HAVE_FC_GETPID in the build system with the result of the test, and it would be simple to do.

However, someone else has to take care of the rest, since I have other priorities and emergencies.

Re: Add process ID to the STATUS file.

Posted: Wed Aug 04, 2010 7:16 pm
by pouillon
Done in my 6.2.2 branch. I now pass the torch to any volunteer.

Re: Add process ID to the STATUS file.

Posted: Sun Aug 08, 2010 1:50 pm
by pmanglade
In case no one could do it before september, I'll try to do it at that time.

Re: Add process ID to the STATUS file.

Posted: Fri Sep 03, 2010 6:16 pm
by pouillon
The stage is yours ... ;)