00:16:30 -!- slyrus [~chatzilla@173-228-44-88.dsl.static.sonic.net] has quit [Ping timeout: 250 seconds] 00:31:52 -!- tsuru [~charlie@adsl-74-179-198-44.bna.bellsouth.net] has quit [Remote host closed the connection] 00:46:16 -!- stassats [~stassats@wikipedia/stassats] has quit [Ping timeout: 258 seconds] 01:22:15 hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #sbcl 01:55:37 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 03:17:44 -!- christoph_debian [~user@oteiza.siccegge.de] has quit [Read error: Operation timed out] 03:18:35 christoph_debian [~user@oteiza.siccegge.de] has joined #sbcl 03:30:22 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #sbcl 03:40:31 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Quit: superjudge] 03:44:27 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #sbcl 03:45:12 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Client Quit] 03:45:52 attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has joined #sbcl 03:45:52 -!- attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has quit [Changing host] 03:45:52 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 03:47:47 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #sbcl 04:01:41 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Quit: superjudge] 04:07:39 -!- lisppaste2 [~lisppaste@tiger.common-lisp.net] has quit [Ping timeout: 240 seconds] 04:09:47 pdlogan [~patrick@75.94.47.26] has joined #sbcl 04:14:14 -!- joshe [~joshe@opal.elsasser.org] has quit [*.net *.split] 04:17:50 -!- pdlogan [~patrick@75.94.47.26] has quit [Quit: Leaving.] 04:18:02 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 04:20:43 pdlogan [~patrick@75-94-47-26.war.clearwire-wmx.net] has joined #sbcl 04:45:04 joshe [~joshe@opal.elsasser.org] has joined #sbcl 05:08:08 -!- pdlogan [~patrick@75-94-47-26.war.clearwire-wmx.net] has quit [Quit: Leaving.] 05:12:55 -!- |3b| [foobar@cpe-72-179-19-4.austin.res.rr.com] has quit [Ping timeout: 246 seconds] 05:19:02 superjudge [~superjudg@195.22.80.141] has joined #sbcl 05:29:36 angavrilov [~angavrilo@217.71.227.181] has joined #sbcl 05:48:26 tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has joined #sbcl 05:51:18 slyrus [~chatzilla@99-27-205-152.lightspeed.irvnca.sbcglobal.net] has joined #sbcl 06:22:40 flip214 [~marek@2001:858:107:1:7a2b:cbff:fed0:c11c] has joined #sbcl 06:22:40 -!- flip214 [~marek@2001:858:107:1:7a2b:cbff:fed0:c11c] has quit [Changing host] 06:22:40 flip214 [~marek@unaffiliated/flip214] has joined #sbcl 06:34:08 gor[e] [~svr@gw2.masterhost.ru] has joined #sbcl 07:21:57 nikodemus_ [~nikodemus@cs181058025.pp.htv.fi] has joined #sbcl 07:24:57 redline6` [~user@c-66-56-55-169.hsd1.ga.comcast.net] has joined #sbcl 07:25:18 -!- redline6561 [~user@c-66-56-55-169.hsd1.ga.comcast.net] has quit [Remote host closed the connection] 07:38:45 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 08:26:37 -!- foom [~jknight@ita4fw1.itasoftware.com] has quit [Ping timeout: 248 seconds] 08:29:41 misterncw [~misterncw@82.71.241.25] has joined #sbcl 08:52:37 attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has joined #sbcl 08:52:37 -!- attila_lendvai [~attila_le@catv-80-98-24-21.catv.broadband.hu] has quit [Changing host] 08:52:37 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 08:55:16 tcr1 [~tcr@217-162-207-164.dynamic.hispeed.ch] has joined #sbcl 09:06:00 hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #sbcl 09:09:33 -!- gor[e] [~svr@gw2.masterhost.ru] has quit [Quit: Lost terminal] 09:10:11 gor[e] [~svr@gw2.masterhost.ru] has joined #sbcl 09:11:12 http://paste.lisp.org/display/122277 - when calling sb-ext:quit form an invoke-debugger-hook it doesn't seem to find the END-OF-WORLD catch tag 09:11:21 this is on a SIGINT 09:17:08 -!- gor[e] [~svr@gw2.masterhost.ru] has quit [Quit: Lost terminal] 09:17:26 gor[e] [~svr@gw2.masterhost.ru] has joined #sbcl 09:30:14 -!- gor[e] [~svr@gw2.masterhost.ru] has quit [Quit: Lost terminal] 09:30:28 gor[e] [~svr@gw2.masterhost.ru] has joined #sbcl 10:01:54 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Ping timeout: 260 seconds] 10:09:40 antoszka [~antoszka@unaffiliated/antoszka] has joined #sbcl 10:34:13 -!- slyrus [~chatzilla@99-27-205-152.lightspeed.irvnca.sbcglobal.net] has quit [Ping timeout: 246 seconds] 10:46:25 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 10:47:47 hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #sbcl 11:24:44 -!- gor[e] [~svr@gw2.masterhost.ru] has quit [Quit: Lost terminal] 11:46:37 stassats [~stassats@wikipedia/stassats] has joined #sbcl 12:01:34 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 12:09:58 foom [~jknight@ita4fw1.itasoftware.com] has joined #sbcl 12:12:33 -!- pchrist [~spirit@gentoo/developer/pchrist] has quit [Quit: leaving] 12:41:46 |3b| [foobar@cpe-72-179-19-4.austin.res.rr.com] has joined #sbcl 12:43:10 tcr1: have you tried :recklessly-p t ? 12:45:23 I do want uwp etc. be executed 12:47:26 -!- foom [~jknight@ita4fw1.itasoftware.com] has quit [Ping timeout: 248 seconds] 12:48:44 does it really matter ? even if uwp forms are freeing foreign memory or closing FDs, exit() will implicitly do that too 12:50:10 tcr1: it's bug in end of the world handling 12:50:56 fe[nl]ix: recklessly-p also skips any remaining exit hooks, which is probably not what you want 12:51:35 plus uwps may be doing things like committing things to db, etc :) 12:51:59 yeah filesystem operations in my case 12:52:17 (not a deep bug -- if you macroexpand handling-end-of-the-world, you should see the problem) 12:53:10 ie. it's (let ((... (catch 'end-of-the-world ...user-code...))) ...final cleanups...) 12:54:24 it should be something like (catch 'end-of-the-world (let (ok) (unwind-protect (progn ...user-code... (setf ok t)) (when ok ...final-cleanups...)) or something along those lines 12:54:48 possibly with an extra uwp for unwinding from a cleanup 13:10:29 slyrus [~chatzilla@99-27-205-152.lightspeed.irvnca.sbcglobal.net] has joined #sbcl 13:22:35 tsuru [~charlie@adsl-74-179-198-44.bna.bellsouth.net] has joined #sbcl 13:48:17 foom [~jknight@ita4fw1.itasoftware.com] has joined #sbcl 13:51:30 homie [~levent.gu@xdsl-78-35-171-87.netcologne.de] has joined #sbcl 14:10:52 -!- superjudge [~superjudg@195.22.80.141] has quit [Quit: superjudge] 14:16:36 prxq [~mommer@mnhm-5f75c689.pool.mediaWays.net] has joined #sbcl 14:55:29 -!- flip214 [~marek@unaffiliated/flip214] has quit [Remote host closed the connection] 15:04:27 -!- misterncw [~misterncw@82.71.241.25] has quit [] 15:36:54 -!- tcr1 [~tcr@217-162-207-164.dynamic.hispeed.ch] has quit [Quit: Leaving.] 15:50:26 gor[e] [~svr@gw2.masterhost.ru] has joined #sbcl 15:52:29 pdlogan [~patrick@174-25-37-137.ptld.qwest.net] has joined #sbcl 16:06:32 -!- slyrus [~chatzilla@99-27-205-152.lightspeed.irvnca.sbcglobal.net] has quit [Ping timeout: 240 seconds] 16:54:47 -!- gor[e] [~svr@gw2.masterhost.ru] has quit [Read error: Operation timed out] 17:23:09 tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has joined #sbcl 17:24:15 -!- pp206 [pierre@sd-6391.dedibox.fr] has quit [*.net *.split] 17:25:09 pp206 [pierre@sd-6391.dedibox.fr] has joined #sbcl 17:56:07 -!- pkhuong [~pkhuong@gravelga.xen.prgmr.com] has quit [Remote host closed the connection] 17:56:12 pkhuong [~pkhuong@gravelga.xen.prgmr.com] has joined #sbcl 17:59:04 superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has joined #sbcl 18:27:46 -!- pkhuong [~pkhuong@gravelga.xen.prgmr.com] has quit [Ping timeout: 240 seconds] 18:28:55 pkhuong [~pkhuong@gravelga.xen.prgmr.com] has joined #sbcl 18:38:11 -!- pkhuong [~pkhuong@gravelga.xen.prgmr.com] has quit [Ping timeout: 240 seconds] 18:38:17 pkhuong [~pkhuong@gravelga.xen.prgmr.com] has joined #sbcl 18:48:03 -!- pkhuong [~pkhuong@gravelga.xen.prgmr.com] has quit [Read error: Operation timed out] 18:50:28 pkhuong [~pkhuong@gravelga.xen.prgmr.com] has joined #sbcl 19:59:28 -!- superjudge [~superjudg@c83-250-110-188.bredband.comhem.se] has quit [Quit: superjudge] 20:11:43 pchrist [~spirit@gentoo/developer/pchrist] has joined #sbcl 20:49:02 -!- cmm- [~cmm@109.67.199.173] has quit [Ping timeout: 264 seconds] 20:49:53 cmm [~cmm@109.67.199.173] has joined #sbcl 21:26:24 -!- prxq [~mommer@mnhm-5f75c689.pool.mediaWays.net] has quit [Remote host closed the connection] 21:36:03 antifuchs: do you have views on daemonization? 21:36:29 AAMOF, I do (-: 21:36:42 excellent! 21:36:54 supervisor process idea is fun, until you try to run your daemon in a supervisor like god or daemontools 21:37:22 (or you write a naive kill/kill-9 wrapper for your daemon which then will fail to kill all processes usefully) 21:37:34 I think a simple pid-writer / detaching mechanism would be great 21:37:56 basically, all you need to get start-stop-daemon without --detach working 21:37:57 did you look at my sb-daemon yet? 21:37:59 nikodemus_: the only thing that should be part of the application is writing the pidfile 21:38:13 everything beyond that would be overkill and can interfere with useful monitoring tools 21:38:14 not yet 21:38:22 for the rest, one should use the OS tools, like start-stop-daemon 21:38:24 it's a very quick read :) 21:38:28 where is it? (: 21:38:40 https://github.com/nikodemus/sb-daemon 21:40:15 hah, that docstring is full of typos i see now 21:40:31 hrm, gh is super slow for me right now 21:40:42 and I'm right next to them, geographically speaking! 21:43:09 hah, i see a bug 21:43:30 nikodemus_: should it set a process group? 21:43:36 (optionally allow it?) 21:44:03 doesn't setsid do that? 21:44:09 it's already doing taht 21:44:36 oh right 21:44:36 setsid implicitly creates a new pgroup 21:44:38 missed that 21:45:02 not sure you want to write that newline to the PIDfile. start-stop-daemon doesn't, IIRC 21:45:04 http://smarden.org/runit/chpst.8.html 21:46:35 looks good though! 21:46:46 I'm happy with this. nice and simple (: 21:48:48 what about the "do things before forking so they can be debugged" thing? 21:50:03 they can still be debugged using strace -f. 21:50:16 hah 21:50:34 this is low-level enough that things will correspond to syscalls anyway (: 21:50:51 I wouldn't be happy if something tries to change process state while I'm running this interactively 21:51:02 (not sure if interactivity is so important though) 21:51:30 I'm not too happy about the parent chdir-ing, for instance 21:51:56 right 21:52:16 does it hurt if the child does it? 21:52:16 i'm not particularly married to those 21:52:49 i just didn't want to figure out how to deal with errors like "not a directory" or bad permissions in the child 21:53:20 / should always be a directory 21:53:30 and you never should chdir anywhere but / when daemonizing anyway 21:53:36 right, but the user can specify something else 21:53:39 -!- homie [~levent.gu@xdsl-78-35-171-87.netcologne.de] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 21:53:42 oh. don't do that (: 21:53:51 i know i want to for the thing /i/ use this for 21:53:57 let them chdir on their own later. 21:54:06 hm, ok 21:54:18 fair point, that 21:54:55 actually, they never should chdir after daemonizing. the only safe dir for daemons to be in is / (: 21:55:54 yeah, but the thing i'm using to run this wants a specific directory _very_ much 21:56:06 heh 21:56:15 chroot there (-; 21:57:07 what about opening the files in parent? 21:57:15 does that seem kosher? 21:58:16 (god, why is github so slow today /-:) 21:58:48 (ah, all better now) 21:59:33 hm, I'd open them as regular files (without overriding stderr / in / out, then dup them over in the child 21:59:52 because the way it works now is that the parent ends up with closed stdin/out/err after daemonizing (: 22:01:31 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Read error: Operation timed out] 22:01:52 antoszka [~antoszka@unaffiliated/antoszka] has joined #sbcl 22:02:03 just pushed a fix for that 22:02:13 (and chdir) 22:03:11 also, I think you need to close the FDs in the child before dup-ing. not sure though. 22:03:31 dup2 takes care of that 22:03:51 ok 22:04:26 cool stuff (: 22:04:31 what could possibly go wrong (-: 22:05:23 hah 22:06:08 thanks for the review. --> home 22:19:26 hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #sbcl 22:20:01 -!- nikodemus_ [~nikodemus@cs181058025.pp.htv.fi] has quit [Ping timeout: 258 seconds] 22:22:42 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Client Quit] 22:23:41 -!- redline6` [~user@c-66-56-55-169.hsd1.ga.comcast.net] has quit [Ping timeout: 240 seconds] 22:27:21 hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #sbcl 22:38:06 -!- pdlogan [~patrick@174-25-37-137.ptld.qwest.net] has left #sbcl 22:42:41 -!- tcr1 [~tcr@217-162-131-235.dynamic.hispeed.ch] has quit [Quit: Leaving.] 22:57:07 -!- tsuru [~charlie@adsl-74-179-198-44.bna.bellsouth.net] has quit [Remote host closed the connection] 23:09:38 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 23:11:38 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 23:37:05 pdlogan [~patrick@c-76-27-203-101.hsd1.or.comcast.net] has joined #sbcl