Mercurial > hg > dhcpcd
changeset 2149:d83d83c2fad9 draft
Warn if dev is started more than once.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 12 Nov 2013 17:09:29 +0000 |
| parents | 404a5ea19f84 |
| children | 08d332f136cf |
| files | dev.c |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dev.c Tue Nov 12 15:00:22 2013 +0000 +++ b/dev.c Tue Nov 12 17:09:29 2013 +0000 @@ -159,6 +159,11 @@ 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) {
