Skip to contentSkip to conversation

/dev/vcs - poll for changes?

DISCUSSION Phil Endecott 2 participants 2 messages Apr 17, 2009 – Apr 18, 2009

lore
Share & tools
lore
#0 lore raw

Dear Experts,

Is there a way to detect when the content of a /dev/vcs* has changed? I have some code that currently polls, which is obviously sub-optimal. I was hoping that there would be some trick like look at the modification time, but I haven't found anything. If this isn't currently possible, how easily could it be added? What would the preferred API be, if it were added?

Thanks for any suggestions.

Phil.

#1 lore raw
Quoted 8 lines · Phil Endecott

Dear Experts,

Is there a way to detect when the content of a /dev/vcs* has changed? I have some code that currently polls, which is obviously sub-optimal. I was hoping that there would be some trick like look at the modification time, but I haven't found anything. If this isn't currently possible, how easily could it be added? What would the preferred API be, if it were added?

The first question would be: why do you want to do this?

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.