Add process ID to the STATUS file.
-
- Posts: 35
- Joined: Wed Jan 20, 2010 3:08 am
Add process ID to the STATUS file.
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.
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.
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.
For these reasons, I would not do it, even if the idea itself seems nice to me.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Add process ID to the STATUS file.
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
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.
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.
However, someone else has to take care of the rest, since I have other priorities and emergencies.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Add process ID to the STATUS file.
Done in my 6.2.2 branch. I now pass the torch to any volunteer.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Add process ID to the STATUS file.
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.
The stage is yours ...
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain