00:00:01  * ircretaryquit (Remote host closed the connection)
00:00:09  * ircretaryjoined
00:07:03  <trevnorris>haha! fixed it.
00:07:10  <trevnorris>indutny: you rock. thanks for the help. :)
00:07:53  <sh1mmer>invisible indutny is invisible
00:07:59  * hzquit
00:17:26  * nickleeflyjoined
00:20:52  * kenperkins_changed nick to kenperkins
00:24:01  * c4miloquit (Remote host closed the connection)
00:27:33  * mikealquit (Quit: Leaving.)
00:42:50  * janjongboomquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:43:04  * rmgjoined
00:46:10  * petka_quit (Quit: Connection closed for inactivity)
00:47:57  * calvinfojoined
00:50:34  * mikealjoined
00:51:28  * EhevuTovquit (Quit: This computer has gone to sleep)
01:05:31  * mikealquit (Quit: Leaving.)
01:11:14  * calvinfoquit (Quit: Leaving.)
01:18:08  * calvinfojoined
01:36:15  * daviddiasquit (Remote host closed the connection)
01:36:42  * daviddiasjoined
01:40:49  * daviddiasquit (Ping timeout: 240 seconds)
01:52:45  * daviddiasjoined
01:53:06  * mikealjoined
02:05:21  * mikealquit (Quit: Leaving.)
02:06:00  * dap_quit (Quit: Leaving.)
02:13:36  * thlorenzjoined
02:21:15  * mikealjoined
02:21:21  * daviddiasquit (Remote host closed the connection)
02:21:48  * daviddiasjoined
02:24:53  * nickleeflyquit (Quit: Connection closed for inactivity)
02:25:38  * rosskquit
02:39:14  * mikealquit (Quit: Leaving.)
02:39:23  * mikealjoined
02:48:45  * jmar777joined
02:48:53  * seldoquit (Remote host closed the connection)
03:00:07  * mikealquit (Quit: Leaving.)
03:02:05  * bradleymeckjoined
03:02:23  * kpdeckerjoined
03:09:29  * kpdeckerquit (Ping timeout: 240 seconds)
03:24:58  * thlorenzquit (Remote host closed the connection)
03:32:11  * seldojoined
03:37:17  * seldoquit (Ping timeout: 265 seconds)
03:51:54  * daviddia_joined
03:53:45  * mikealjoined
03:55:18  * daviddiasquit (Ping timeout: 264 seconds)
03:57:33  * jmar777quit (Remote host closed the connection)
04:34:08  * bradleymeckquit (Quit: bradleymeck)
05:00:50  * seldojoined
05:04:59  * seldoquit (Ping timeout: 240 seconds)
05:09:52  * calvinfoquit (Quit: Leaving.)
05:24:40  * rmgquit (Remote host closed the connection)
05:40:40  * calvinfojoined
06:06:22  * rmgjoined
06:12:49  * brsonquit (Ping timeout: 240 seconds)
06:16:18  * rmgquit (Ping timeout: 264 seconds)
06:19:19  * bradleymeckjoined
06:26:04  * benoitcjoined
06:26:20  <benoitc>hi
06:27:18  <benoitc>is there a way to set the system resource limits before spawning a process
06:27:51  <benoitc>usually it's done after the fork but i don't find a way to do it with the current api
06:50:30  * daviddia_quit (Remote host closed the connection)
06:51:02  * daviddiasjoined
06:53:20  <bradleymeck>benoitc: why do you need it before a fork, (I mean you could always apply it to the group as well)
06:55:14  <benoitc>bradleymeck: i would like to apply it / processes
06:55:27  * daviddiasquit (Ping timeout: 265 seconds)
06:55:47  <benoitc>someone could pass an option and launch the process
06:56:32  <benoitc>at least i wanted to do it dynamically
06:57:20  <bradleymeck>benoitc: unsure what you mean, what is the limiting factor that prevents it after the fork? you will want to use a launcher (sets itself up then calls exec*) if you don't want them to spawn random things
06:57:46  <benoitc>bradleymeck: i have no control on the spawned command line
06:58:04  <bradleymeck>command line?
06:58:30  <benoitc>the command spawned
06:58:38  <bradleymeck>if you are intercepting what calls fork you can change it to your launcher
06:59:06  <benoitc>you mean wrapping the command i want to launch by another?
06:59:56  <bradleymeck>benoitc: yes
07:00:10  <bradleymeck>then having that command exec to replace itself after setting up security etc
07:02:16  <benoitc>yeah why not, it makes things a little more complicated, compared to do the work right after the fork and before the exec call
07:02:25  <benoitc>but i guess it's more portable
07:02:32  <benoitc>thanks
07:03:56  <bradleymeck>benoitc: its pretty standard for how people do it since it is flexible
07:05:09  <benoitc>yup but wanted to skip that needs :) not a big deal anyway
07:06:08  * janjongboomjoined
07:19:38  * m76joined
07:26:00  * bajtosjoined
07:32:40  * bajtosquit (Ping timeout: 265 seconds)
07:33:55  * c4milojoined
07:40:24  * calvinfoquit (Quit: Leaving.)
07:41:00  * calvinfojoined
07:46:36  * janjongboomquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:47:10  * calvinfoquit (Ping timeout: 265 seconds)
07:58:19  * janjongboomjoined
08:00:08  * hzjoined
08:05:53  * rendarjoined
08:10:50  * calvinfojoined
08:13:03  * calvinfo1joined
08:13:03  * calvinfoquit (Read error: Connection reset by peer)
08:13:49  <indutny>trevnorris :D
08:13:51  <indutny>lol
08:15:02  * calvinfojoined
08:15:10  * calvinfoquit (Read error: Connection reset by peer)
08:15:14  * calvinfo1quit (Read error: Connection reset by peer)
08:15:16  * calvinfo2joined
08:19:26  * stagasjoined
08:19:29  * calvinfo2quit (Ping timeout: 240 seconds)
08:41:59  * kevinsimperjoined
09:03:09  * seldojoined
09:06:31  * hzquit (Ping timeout: 260 seconds)
09:07:05  * hzjoined
09:07:59  * seldoquit (Ping timeout: 240 seconds)
09:15:04  * sinclair|workjoined
09:15:46  * calvinfojoined
09:19:59  * calvinfoquit (Ping timeout: 240 seconds)
09:31:43  * Damn3dquit (Ping timeout: 264 seconds)
09:39:17  * Damn3djoined
09:39:20  * Damn3dquit (Changing host)
09:39:20  * Damn3djoined
09:51:20  * c4miloquit (Remote host closed the connection)
09:54:50  * chrisdickinsonquit (Ping timeout: 252 seconds)
09:57:03  * c4milojoined
10:01:45  * chrisdickinsonjoined
10:14:35  * c4miloquit (Remote host closed the connection)
10:15:54  * dsantiagoquit (Ping timeout: 245 seconds)
10:16:37  * calvinfojoined
10:17:23  * inolenquit (Ping timeout: 252 seconds)
10:21:06  * calvinfoquit (Ping timeout: 264 seconds)
10:23:42  * c4milojoined
10:25:14  * c4miloquit (Remote host closed the connection)
10:32:12  * inolenjoined
10:32:57  * dsantiagojoined
11:15:17  * rmgjoined
11:17:16  * calvinfojoined
11:17:26  * calvinfoquit (Read error: Connection reset by peer)
11:17:29  * calvinfo1joined
11:20:01  * rmgquit (Ping timeout: 240 seconds)
11:21:37  * calvinfo1quit (Ping timeout: 240 seconds)
11:25:37  * sinclair|workquit (Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424])
11:53:26  * skebciojoined
12:03:29  * skebcioquit
12:16:32  * AlexisMochajoined
12:18:05  * calvinfojoined
12:22:25  * calvinfoquit (Ping timeout: 240 seconds)
12:29:30  * rmgjoined
13:06:23  * thlorenzjoined
13:13:18  * seldojoined
13:18:06  * seldoquit (Ping timeout: 264 seconds)
13:18:17  * nickleeflyjoined
13:18:42  * Kakera_joined
13:18:51  * calvinfojoined
13:23:01  * calvinfoquit (Ping timeout: 246 seconds)
13:33:17  * janjongboomquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:36:49  * thlorenzquit (Remote host closed the connection)
13:37:17  * janjongboomjoined
13:39:00  * janjongboomquit (Client Quit)
13:40:08  * thlorenzjoined
13:41:41  * thlorenzquit (Remote host closed the connection)
14:00:45  * rmgquit (Remote host closed the connection)
14:01:02  * jmar777joined
14:03:40  <MI6>joyent/libuv: saghul created branch multicast-join6-osx - http://git.io/LU-BlQ
14:08:36  <indutny> heya
14:10:27  * rmgjoined
14:19:31  * calvinfojoined
14:23:55  * calvinfoquit (Ping timeout: 246 seconds)
14:31:29  * thlorenzjoined
14:33:42  <indutny>saghul: you around?
14:34:41  <saghul>indutny: yep
14:36:20  <saghul>sup?
14:37:19  <indutny>we have a problem https://github.com/joyent/libuv/issues/1207 :)
14:37:35  <indutny>basically, it seems that uv__open_cloexec returns -errno
14:37:36  <indutny>not -1
14:37:46  <indutny>and the code that we decided to re-revert
14:37:51  <indutny>about reopening /dev/tty
14:37:54  <indutny>remember it?
14:37:57  <indutny>it seems to be expecting -1
14:38:05  <saghul>let me check
14:38:08  <indutny>but that's not what I'm worried about
14:38:23  <indutny>somehow uv__open_closexec("/dev/tty", RDWR) return -EBADF
14:39:27  <saghul>oh!
14:39:32  <saghul>permissions?
14:40:29  <indutny>I have no idea
14:40:39  <indutny>doesn't look like so
14:40:42  <indutny>I was `root`
14:43:10  <saghul>hum
14:43:17  <saghul>for the other thing: https://gist.github.com/saghul/9665315
14:43:34  <saghul>on what system did you see this?
14:44:00  * daviddiasjoined
14:44:16  <indutny>linux
14:44:30  <indutny>perhaps we should fallback to regular tty fd?
14:44:38  <indutny>if it doesn't work out
14:44:46  <saghul>yeah, probably
14:45:02  <saghul>though we'd need to blocking writes as before
14:45:03  <indutny>I'll try to figure out what's wrong with it
14:45:13  <indutny>aaah
14:45:36  <indutny>I see
14:45:51  <saghul>on my Debian machine the tests passed with the patch I pasted
14:46:02  <saghul>I wonder what happens in yours :-/
14:46:38  <indutny>hm.. :)
14:46:46  <indutny>you mean our tests?
14:46:52  <indutny>what about that pm2 module?
14:48:25  <indutny>aah
14:48:26  <indutny>[pid 12282] open("/dev/tty", O_RDWR|O_CLOEXEC) = -1 ENXIO (No such device or address)
14:48:26  <indutny>[pid 12282] dup3(4294967290, 2, O_CLOEXEC) = -1 EBADF (Bad file descriptor)
14:48:49  <indutny>wtf
14:49:02  <indutny>ENXIO O_NONBLOCK | O_WRONLY is set, the named file is a FIFO and no process has the file open for reading. Or, the file is a device special file and no corresponding device exists.
14:49:14  <saghul>with the patch I pasted you'd get ENXIO for uv_tty_init
14:49:40  <indutny>the patch is good
14:49:42  <indutny>I think
14:49:50  <indutny>I'm just trying to figure out why open is failing
14:50:37  * paulfryzeljoined
14:51:06  * WalrusPony1quit (Ping timeout: 264 seconds)
14:51:22  <indutny>going to try out one thing
14:51:36  <MI6>joyent/libuv: Saúl Ibarra Corretgé master * 15140ce : unix: fix handling uv__open_cloexec failure - http://git.io/GYXUog
14:52:12  <saghul>what does ls -lh /dev/tty show for you?
14:52:25  <indutny>[pid 12375] open("/dev/tty", O_RDWR|O_CLOEXEC) = -1 ENXIO (No such device or address)
14:52:25  <indutny>[pid 12375] open("/dev/tty", O_RDWR) = -1 ENXIO (No such device or address)
14:52:36  <indutny>root@7527bd77-ab3e-474b-ace7-eed6053931e7:~/node# ls -lh /dev/tty
14:52:36  <indutny>crw-rw-rw- 1 root tty 5, 0 2014-03-20 07:51 /dev/tty
14:52:50  <indutny>perhaps you couldn't open it for writing and reading simultaneously?
14:53:10  <indutny>oh
14:53:10  <indutny>Some processes have no
14:53:11  <indutny>controlling terminal, in which case they will receive an ENXIO error
14:53:11  <indutny>when trying to open /dev/tty - which is what you're seeing above.
14:53:27  <saghul>aha
14:54:04  <indutny>so the process can't open terminal
14:54:07  <indutny>because it is detached
14:55:23  <saghul>we should probably handle that specific case
14:57:44  <indutny>indeed
14:57:52  <indutny>we should probably handle all failures
14:58:01  <indutny>and use original fd
14:59:36  <indutny>could we just add flags?
14:59:42  <indutny>nah, it sounds awful
15:00:18  <indutny>hm...
15:00:24  <indutny>perhaps we should make it non-blocking
15:00:29  <indutny>in such cases
15:00:37  <indutny>not sure what choice is better
15:00:38  <saghul>but that would affect other preocesses
15:00:41  <indutny>yeah
15:00:43  <saghul>*processes
15:00:45  <indutny>they are both awful
15:01:03  <saghul>we can fallback to the previous behavior I guess
15:01:16  <indutny>making it blocking
15:01:17  <indutny>ok
15:01:19  <indutny>sounds like a deal
15:01:23  <indutny>want to submit PR?
15:01:52  <saghul>I can do that tonight / tomorrow
15:02:16  <indutny>cool!
15:02:17  <indutny>thank you
15:09:09  * toothrotquit (Read error: Connection reset by peer)
15:10:12  * toothrjoined
15:15:18  * seldojoined
15:19:38  * seldoquit (Ping timeout: 240 seconds)
15:20:15  * calvinfojoined
15:24:25  * calvinfoquit (Ping timeout: 240 seconds)
15:38:45  * mikealquit (Quit: Leaving.)
15:41:59  * daviddiasquit (Remote host closed the connection)
15:42:47  * daviddiasjoined
15:43:47  * kenperkinsquit (Remote host closed the connection)
15:44:31  * kenperkinsjoined
15:46:26  * daviddiasquit (Read error: No route to host)
15:46:57  * daviddiasjoined
15:47:41  * calvinfojoined
15:49:26  * rmgquit (Remote host closed the connection)
15:50:45  <daviddias>tjfontaine: is there going to be a Status call today? Or are you on the go to #NodeRoad?
15:54:35  * daviddiasquit (Remote host closed the connection)
15:55:09  * daviddiasjoined
15:55:14  * nsmquit (Read error: Operation timed out)
15:55:21  * nsmjoined
15:59:59  * daviddiasquit (Ping timeout: 269 seconds)
16:04:29  * rmgjoined
16:07:50  * WalrusPonyjoined
16:10:35  * daviddiasjoined
16:12:41  * dap_joined
16:17:48  * m76quit (Read error: Connection reset by peer)
16:18:51  * kenperkins_joined
16:19:55  * kenperkinsquit (Read error: Connection reset by peer)
16:31:51  * kenperkinsjoined
16:34:53  * nickleeflyquit (Quit: Connection closed for inactivity)
16:35:10  * kenperkins_quit (Ping timeout: 246 seconds)
16:46:39  * bajtosjoined
16:51:38  * petka_joined
16:52:37  * AlexisMocha_joined
16:54:25  * AlexisMochaquit (Ping timeout: 240 seconds)
16:58:48  * stagasquit (Remote host closed the connection)
17:09:00  <bradleymeck>edge cases /me shakes fist
17:26:44  * daviddiasquit (Remote host closed the connection)
17:27:10  * daviddiasjoined
17:30:52  * seldojoined
17:31:19  * daviddiasquit (Ping timeout: 245 seconds)
17:32:13  * daviddiasjoined
17:33:39  * daviddiasquit (Remote host closed the connection)
17:34:05  * daviddiasjoined
17:34:25  * rendarquit
17:38:47  * daviddiasquit (Ping timeout: 265 seconds)
17:39:24  * calvinfoquit (Quit: Leaving.)
17:48:03  * daviddiasjoined
17:48:37  * daviddiasquit (Remote host closed the connection)
17:49:06  * daviddiasjoined
17:50:05  * daviddiasquit (Read error: Connection reset by peer)
17:50:20  * daviddiasjoined
17:52:06  * daviddia_joined
17:52:07  * daviddiasquit (Read error: Connection reset by peer)
17:52:24  * daviddia_quit (Remote host closed the connection)
17:52:30  * daviddiasjoined
17:52:33  * daviddiasquit (Remote host closed the connection)
17:52:39  * daviddiasjoined
17:52:47  * daviddiasquit (Remote host closed the connection)
17:53:00  * daviddiasjoined
17:53:02  * kevinsimperquit (Remote host closed the connection)
17:53:04  * daviddiasquit (Remote host closed the connection)
18:00:24  * m76joined
18:06:09  * calvinfojoined
18:08:52  * AlexisMocha_quit (Read error: Connection reset by peer)
18:24:48  * janjongboomjoined
18:25:57  * mikealjoined
18:27:06  * janjongboomquit (Client Quit)
18:31:05  * ryah_quit (Quit: leaving)
18:31:12  * ryahjoined
18:39:05  * rosskjoined
18:40:34  * brsonjoined
18:41:58  * thlorenzquit (Remote host closed the connection)
18:43:13  * WalrusPony1joined
18:43:58  * WalrusPonyquit (Ping timeout: 240 seconds)
18:44:30  * jmar777quit (Read error: Connection reset by peer)
18:44:54  * jmar777joined
18:56:54  * jmar777quit (Remote host closed the connection)
18:57:55  * WalrusPonyjoined
19:00:04  * WalrusPony1quit (Ping timeout: 245 seconds)
19:01:46  * EhevuTovjoined
19:02:16  * thlorenzjoined
19:02:38  * jmar777joined
19:33:05  * jmar777quit (Read error: Connection reset by peer)
19:33:08  * jmar777_joined
19:55:18  * janjongboomjoined
20:00:29  * bajtosquit (Quit: bajtos)
20:00:40  * EhevuTov_joined
20:01:38  * EhevuTovquit (Ping timeout: 240 seconds)
20:05:26  * calvinfoquit (Quit: Leaving.)
20:06:06  * mikealquit (Quit: Leaving.)
20:13:31  * mikealjoined
20:16:34  * janjongboomquit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:28:17  * bradleymeckquit (Quit: bradleymeck)
20:35:38  * jmar777_quit (Remote host closed the connection)
20:41:33  * c4milojoined
20:52:30  * hzquit
21:02:16  * skebciojoined
21:05:59  * calvinfojoined
21:07:33  * calvinfoquit (Read error: Connection reset by peer)
21:07:45  * calvinfojoined
21:08:43  * calvinfo1joined
21:08:43  * calvinfoquit (Read error: Connection reset by peer)
21:09:12  * EhevuTov_quit (Quit: Leaving)
21:09:40  * calvinfojoined
21:09:40  * calvinfo1quit (Read error: Connection reset by peer)
21:12:04  * kpdeckerjoined
21:22:22  * kevinsimperjoined
21:25:21  * jmar777joined
21:36:33  * c4miloquit (Remote host closed the connection)
21:36:53  * jmar777quit (Remote host closed the connection)
21:37:14  * kevinsimperquit (Read error: Connection reset by peer)
21:37:27  * calvinfoquit (Quit: Leaving.)
21:52:04  * brsonquit (Ping timeout: 252 seconds)
21:53:53  * brsonjoined
21:57:47  <trevnorris>afternoon all.
21:58:08  <trevnorris>tjfontaine: sorry about missing the call this morning. had a couple unexpected things come up.
21:58:58  <trevnorris>indutny: here's the solution I came up w/. look alright to you? https://github.com/trevnorris/node/commit/f389c3a
21:59:30  <trevnorris>whoops. there's a typo in there. go fix that now.
22:00:17  * c4milojoined
22:01:36  * c4miloquit (Remote host closed the connection)
22:02:54  * hzjoined
22:04:46  <indutny>trevnorris: looks awesome!
22:04:48  <indutny>does it work? :)
22:07:31  <MI6>joyent/libuv: Saúl Ibarra Corretgé master * 8bbf469 : test: fix multicast join test on OSX when using IPv6 - http://git.io/IlXeGw
22:11:55  * thlorenzquit (Remote host closed the connection)
22:15:00  <trevnorris>indutny: yeah. works great.
22:16:00  <trevnorris>thanks again for the help there. :)
22:17:59  <MI6>joyent/libuv: Marc Schlaich v0.10 * cd6db8b : build, windows: do not fail on Windows SDK Prompt (+1 more commits) - http://git.io/FwpkXg
22:25:16  * bradleymeckjoined
22:31:37  * Kakera_quit (Ping timeout: 240 seconds)
22:38:02  * calvinfojoined
22:42:18  * calvinfoquit (Ping timeout: 240 seconds)
22:50:59  * toothrchanged nick to toothrot
22:53:52  * brsonquit (Ping timeout: 246 seconds)
22:55:55  * brsonjoined
23:01:49  * bradleymeckquit (Quit: bradleymeck)
23:10:04  * daviddiasjoined
23:12:54  * c4milojoined
23:26:10  * petka_quit (Quit: Connection closed for inactivity)
23:35:07  * paulfryzelquit (Remote host closed the connection)
23:38:46  * calvinfojoined
23:43:14  * calvinfoquit (Ping timeout: 265 seconds)
23:48:25  * c4miloquit (Remote host closed the connection)
23:57:04  * c4milojoined