melor/node-posix — Issue #2: "openlog: invalid argument values"
Author: alanszlosek
Created: 2012-03-05 22:47:04+00:00
State: open

Hi Mika,

I had an issue while trying to use openlog(). When I call it like "posix.openlog('test', {}, 'auth');" it reports an error of "openlog: invalid argument values". The exact code I'm using is below ...

I'm using node v0.4.11 on an Ubuntu 11.10 Amazon Web Services instance. I installed the module using "npm build" and "npm install" from a recent git clone. The following results in the error:

```var posix = require('posix');
posix.openlog('test', {}, 'auth');```

Even if I specify {pid:true} as second param it still errors. I do see that the LOG_PID constant (and others) is being used and mapped to "pid" so it doesn't appear to be a simple typo.

Any insight?