Hi Ferran:

On Wed, 11 Apr 2007, Ferran Jorba wrote:

> A more portable implementation that should work on Linux, Solaris and
> Digital Unix.  Not tested on FreeBSD.

It would not work "as is" on FreeBSD where the "f" and "u" options
behave differently.  The output information also differs there.  See
<http://www.freebsd.org/cgi/man.cgi?query=ps>.

Ideally, we should not rely on "guessing" task PIDs via get_my_pid()
way of doing things, but rather the tasks should store their PIDs into
dot-pid files when they are started, so bibsched can retrieve them
cleanly later if needed.  (Kind of like it manages its own PID via
/opt/cds-invenio/var/run/bibsched.pid.)  This would constitute a
proper solution to the problem.  We have not got to implement this
yet.  Until done, I think we can safely stick to the current
technique, unless it makes troubles on some of your systems?

Best regards
-- 
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to