These are chat archives for tableflip/boss

9th
Mar 2014
Alan Shaw
@alanshaw
Mar 09 2014 10:01
If I run bs start xxx, and then run bs start xxx again does it try to connect to the same DaemonStarter? It should do right?
Alex Potsides
@achingbrain
Mar 09 2014 10:01
yeah
it looks for the socket file, if it exists it tries to connect to it
otherwise it starts the daemon
if connection fails it should probably remove the socket file then attempt to start the daemon
unless it's access denied of course
although most of it is nonsense
Alex Potsides
@achingbrain
Mar 09 2014 10:06
if i can kill -s SIGUSR1 $pid any node process to put it in debug mode
Alan Shaw
@alanshaw
Mar 09 2014 10:06
I'm going to make it so if you don't specify a command it lists processes - makes sense?
Alex Potsides
@achingbrain
Mar 09 2014 10:07
sure, why not
so, yeah, if i can put any node process in debug mode, then i can change the running code of any node process
even if i don't own that process
probably need to figure out some way of preventing debug mode
otherwise if the daemon runs as root, and i am malicious user, i can do nasty stuff as root
just by sending a signal and opening node-inspector
Alan Shaw
@alanshaw
Mar 09 2014 10:15
yeah
that is scary
Alex Potsides
@achingbrain
Mar 09 2014 10:18
from what i've read you can't trap it in node code
as the runtime listens for that signal higher up
just done a push so you can start processes
going to verify the memory behaviour i was talking about next
then probably refactor to use the cluster module instead of child_process
Alex Potsides
@achingbrain
Mar 09 2014 10:26
but first: sausages
Alex Potsides
@achingbrain
Mar 09 2014 10:45
actually i think we're now going to mon p'tit chou
do you guys fancy joining?
us, i mean, not carpentry
Alan Shaw
@alanshaw
Mar 09 2014 10:58
hmm
maybe
we have eaten breakfast though
Alex Potsides
@achingbrain
Mar 09 2014 11:01
the situation is developing
i think ed might be aborted
apart from the edt at 2pm for the rugby
i wonder how long gitter keeps chat history for
important to document the early stages of boss
and the author's social lives
Alan Shaw
@alanshaw
Mar 09 2014 11:04
indeed, very important - edt at 2pm sounds perfect
Oli Evans
@olizilla
Mar 09 2014 11:07
wat
Alan Shaw
@alanshaw
Mar 09 2014 11:24
what is up with the path.resolves in your require statements? Is there a reason for that and not just require("./lib/ProcessRPC"), for example?
makes it hard to read
Oli Evans
@olizilla
Mar 09 2014 12:28
I was wondering the same thing. I tested it on windoze and require figures it out for you regardless of platform, no need to path.resolve
Alan Shaw
@alanshaw
Mar 09 2014 12:45
w00t
$ sudo bs start test/fixtures/http-server.js
[ { pid: 1660,
$ sudo bs list
uid: 0,
gid: 0,
title: '/Users/alan/Sites/tableflip/boss/test/fixtures/http-server.js',
uptime: 4,
memoryUsage: { rss: 16302080, heapTotal: 7195904, heapUsed: 2825608 } } ]