> You ignore files when stat fails, why not ignore files when
> fopen fails?

Because a dead symbolic link has no substance. Even if it's ignored,
nothing is lost. (Stat(1) is used for detecting a dead symbolic link.)

Unlike that, an unreadable file means that something critical has
occurred. In that case, gtags stop its job, and give the user a chance
to check the disk, permission and etc.

Regards
Shigio


2015-08-27 21:38 GMT+09:00 Jason Hood <[email protected]>:

> On 27/08/2015 21:33, Shigio YAMAGUCHI wrote:
>
> > Isn't there a way to decide whether it is a dead link?
>
> Sure, test if fopen fails. :)
>
> > It is not opentoken() but parsers that call die().
>
> Yeah, that's what I meant.
>
> > It might be difficult to force plug-in parsers not to die.
>
> Plug-in parsers can do what they want, that's not the issue.
>
> You ignore files when stat fails, why not ignore files when
> fopen fails?  That's what the attached patch does.  Oh, I
> was also able to successfully use skip on the broken link,
> so I don't know what went wrong there.
>
> --
> Jason.
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to