This removes bogus write failed warning.
$ wdctl
wdctl: write failed: Invalid argument
Device: /dev/watchdog
[...]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
warn(_("cannot set timeout for %s"), wd->device);
}
- if (close_fd(fd))
+ if (close(fd))
warn(_("write failed"));
sigprocmask(SIG_SETMASK, &oldsigs, NULL);
printf(P_("Timeout has been set to %d second.\n",
* the machine might end up rebooting. */
}
- if (close_fd(fd))
+ if (close(fd))
warn(_("write failed"));
sigprocmask(SIG_SETMASK, &oldsigs, NULL);