mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Redirect inotifywait's stdin and stderr from/to /dev/null
This commit is contained in:
@@ -3644,7 +3644,7 @@ proc SetFonts {} {
|
|||||||
proc SetupInotify {} {
|
proc SetupInotify {} {
|
||||||
global InotifyFP
|
global InotifyFP
|
||||||
global ReminderFile
|
global ReminderFile
|
||||||
set failed [catch {set InotifyFP [open "|inotifywait -r -q -m -e close_write -e move -e create -e delete $ReminderFile" "r"] } ]
|
set failed [catch {set InotifyFP [open "|inotifywait -r -q -m -e close_write -e move -e create -e delete $ReminderFile < /dev/null 2>/dev/null" "r"] } ]
|
||||||
if {$failed} {
|
if {$failed} {
|
||||||
# inotifywait probably not available... meh.
|
# inotifywait probably not available... meh.
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user