Warn if dev is started more than once.

This commit is contained in:
Roy Marples 2013-11-12 17:09:29 +00:00
parent fd598623df
commit b2072e4c6e

5
dev.c
View File

@ -159,6 +159,11 @@ int
dev_start(const char *plugin)
{
if (fd != -1) {
syslog(LOG_ERR, "%s: already started on fd %d", __func__, fd);
return fd;
}
fd = dev_start1(plugin);
if (fd != -1) {
if (eloop_event_add(fd, dev_handle_data, NULL) == -1) {