diff options
| author | Jeff Carr <[email protected]> | 2023-03-28 08:53:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-28 08:53:51 -0500 |
| commit | 5645231c498048dd4a1e4b097437a6f4c63cd022 (patch) | |
| tree | b178242225970e6ed1dceb758b8d9b5e4e231d6e /fsnotify.go | |
| parent | 76699a310278d5b52613f0a59a664c9213fa6668 (diff) | |
remove places the app could exit
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'fsnotify.go')
| -rw-r--r-- | fsnotify.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fsnotify.go b/fsnotify.go index 814c9c7..cff67b7 100644 --- a/fsnotify.go +++ b/fsnotify.go @@ -13,7 +13,8 @@ func watchSysClassNet() { // Create new watcher. watcher, err := fsnotify.NewWatcher() if err != nil { - exit(err) + log(logError, "watchSysClassNet() failed:", err) + return } defer watcher.Close() @@ -41,7 +42,8 @@ func watchSysClassNet() { // Add a path. err = watcher.Add("/tmp") if err != nil { - exit(err) + log(logError, "watchSysClassNet() watcher.Add() failed:", err) + return } // Block main goroutine forever. |
