/srv/irclogs.ubuntu.com/2011/06/10/#upstart.txt

wraidenHello :)16:39
wraiden*reading job_emit_event*18:56
Keybukwraiden: good luck19:00
Keybukthe last person who went in there never came out19:00
wraidenhehe19:20
wraideni think i have found the point to add the alias handling19:20
Keybukit would be in there, yes19:21
wraideni think i move the environment construction into an helper as i have to construkt the environment for the job event itself and all aliases that might be set...19:21
wraidenor is it possibe to overwrite the JOB in an already constructed environment ?19:22
wraidenthat would make it very easy *G*19:22
Keybukyeah, you can keep setting JOB to overwrite it19:23
Keybuksee environ.c19:23
wraidenand it will hold its position as the first env var on the event?19:23
Keybukyes19:24
Keybuksee environ_add()19:25
Keybuk(provided you go through that function, of course)19:25
Keybukenviron_set() calls environ_add() fwiw19:26
wraidennice and handy *g*19:26
wraidenwhere does the code actualy block until all jobs that hook into a blocking event are processed?19:38
Keybukthe code doesn't block per-se19:42
Keybukjob_change_state sets job->blocker to the return value of job_emit_event19:43
Keybukand doesn't change state to the next one, so ends19:43
Keybukevent_finished() is what, when an event reaches zero blockers, calls job_change_state to unblock the job19:44
wraidenif i implement the aliases as multiple independent blocking events...19:45
wraidenthen i have to check if no other alias event is still blocking19:45
wraidenmhm19:45
Keybukinteresting19:52
Keybukyeah you may have to extend things19:52
wraidenif i understand the code right than i can add multiple blocking events to the main jobs event->blocking20:01

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!