Hacker News new | ask | show | jobs
by anonanon101 4276 days ago
There are too many similarities between the code that suggest the source for Monit was indeed looked at, contrary to what Mike has stated on Twitter.

For instance some of the file names are the same, ie, Inspector's events.go and Monit's Event.c

Further, the code is very similar in places. Mind you it's not a direct copy, but this can't be coincidence.

Monit: https://bitbucket.org/tildeslash/monit/src/1686ffd4baa16b16d...

Inspeqtor: https://github.com/evanphx/inspeqtor/blob/master/events.go#L...

4 comments

This is silly.

    {Event_Nonexist,   "Does not exist",          "Exists",                     "Existence changed",        "Existence not changed"},

    ProcessDoesNotExist EventType = "ProcessDoesNotExist"
These are not particularly similar, except that they express some of the same concepts, which are the concepts of the domain. A user of monit would be aware of these concepts.
Event? Really?

Well, I guess monit had better hire a few more lawyers.

https://github.com/search?utf8=%E2%9C%93&q=event&type=Code&r...

These examples look nothing alike. At least not in the sense that one is copied from the other. Any program that has to check on the existence of processes might potentially have code that looks similar to that.

> For instance some of the file names are the same, ie, Inspector's events.go and Monit's Event.c

You can't be serious. "Events", as a filename is an indication of plagiarism? An "event" is a basic concept of programming! That's like if a teacher accused students of copying because they both handed in a file called "homework.doc".

I see absolutely nothing interesting here, it's just an error management with an error list. I'm pretty sure that I have similar handlers in my own code too.

You can even find this pattern in strerror.c which is handeling errno.h [1]. this is a really old concept.

[1] http://opensource.apple.com/source/gcc/gcc-926/libiberty/str...