[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #38420] $(realpath ...) doesn't recover from signals
From: |
Paul D. Smith |
Subject: |
[bug #38420] $(realpath ...) doesn't recover from signals |
Date: |
Wed, 27 Feb 2013 18:21:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22 |
Follow-up Comment #4, bug #38420 (project make):
The only option I can think of is using $(shell ...) to determine the real
path rather than the built-in realpath function. This will be slower, but
more reliable (as far as I'm aware all the EINTR issues with shell have long
since been solved).
Maybe something like: $(shell cd $(dir $<) && pwd)
Or, if you don't really need the full power of realpath you could switch to
abspath. That is just a string manipulation function so it doesn't do any
system calls that might be interrupted with EINTR.
It really depends on your situation. But there's no way I know of to fix the
problem with realpath, without a code change.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38420>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/