Comments (6)
I had some problems in getting --follow=name to work. The --retry part I had already, but I switched to a few other flags. So if you have a good idea how to solve that part, go for it.
See here: fdellwing@a28ae5f
from serenity.
Our FileWatcher
does currently not register a truncate
. Imho a truncate
should trigger a ContentModified
event, but it does not. How are we notifying the FileWatcher
about a new event currently?
Also the -F
flag has nothing to do with truncation in GNU (coreutils). It changes the follow mode from fd
based to name
based. So if the file is moved away, tries to reopen the file (-> logrotate). Truncation is supported in normal -f
mode.
from serenity.
I have solved the truncation
part.
I'll now look into implementing --retry
and --follow=name
(which are both combined in -F
).
from serenity.
@fdellwing Are you still working on this or can I take this issue?
from serenity.
--follow=name
Aren't we taking the file name from the positional arg?
It is mode of following. Got it
from serenity.
It is mode of following. Got it
Yes. It is used in -F to actually keep following a file by name if the original opened file is moved away. By default we keep following the original file as we use the fd.
from serenity.
Related Issues (20)
- CCITT group 3, 1-d found in the wild HOT 1
- Break dependency of code generators on LibCore
- LibWeb: `border-radius` clipping does not clip (text?) content outside the border box of iframes
- LibWeb: IntersectionObserver does not work inside boxes with scrollable overflow
- LibWeb: Cloudflare Turnstile differences between us and other engines
- LibWeb: Crash with a transform animation that contains var()
- liblagom: Web page crashed on www.volkswagen.de
- liblagom: Web page crashed on www.google.com HOT 4
- LibGfx: Can't load the font "Hæck" HOT 3
- LibCrypto: RSAPrivateKey::export_as_der and Crypto::encode_pem do not round trip
- LibWeb: Unclosed HTML comment crashes the browser after "View Source"
- LibWeb: Table is incorrectly sized inside grid cell
- REGRESSION: AK: Crash in base64 decoding when loading ECMA262 spec in Ladybird HOT 2
- [Fuzzer Reduction] LibRegex: Crash on funky input
- [Fuzzer Reduction] LibJS: Crash on assingment to function evaluation
- liblagom: Web page crashed during JS bytecode execution HOT 1
- liblagom: Web crash (i < m_size asserts) after finalize_a_same_document_navigation
- Ports: Zig crashes due to illegal instruction
- LibWeb: CSS Opacity animation resets when the view updates
- LibWeb/IDLGenerators: Cannot set "view" property of a UIEvent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serenity.