[torquedev] [Bug 60] Linux code to read /proc/self/exe breaks mom auto-update if directory symlinks are involved
bugzilla-daemon at supercluster.org
bugzilla-daemon at supercluster.org
Fri Nov 19 09:14:49 MST 2010
http://www.clusterresources.com/bugzilla/show_bug.cgi?id=60
dbeer at adaptivecomputing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dbeer at adaptivecomputing.com
--- Comment #5 from dbeer at adaptivecomputing.com 2010-11-19 09:14:48 MST ---
(In reply to comment #2)
> (In reply to comment #1)
> > why keep the old behavior at all? why not just check argv[0] all the time?
>
> Because argv[0] might not be in PATH.
>
> To avoid another option in torque, just have your script do:
> V=$(readlink /blah/default)
> /blah/$V/bin/pbs_mom
If you look at OriginalPath in the pbs_server code (main function) you may be
able to use that to fix the problem. I had to save Original Path to get the
TORQUE high availability feature working properly.
--
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the torquedev
mailing list