Redirect inotifywait's stdin and stderr from/to /dev/null

This commit is contained in:
Dianne Skoll
2021-12-22 10:15:34 -05:00
parent 20bb3eb674
commit c7be8c59f3

View File

@@ -3644,7 +3644,7 @@ proc SetFonts {} {
proc SetupInotify {} {
global InotifyFP
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} {
# inotifywait probably not available... meh.
return