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 | dae59705a1414a861f1de13dfb1e69fe6581c084 (patch) | |
| tree | 5881c06abc316c400fd6126e927bce41b9893486 /fsnotify.go | |
| parent | 91787b9121e68620cb589a403c044b40c1ad3d8d (diff) | |
remove places the app could exitv0.1
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. |
