diff options
author | axel <axel@liljencrantz.se> | 2005-10-15 10:51:26 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-15 10:51:26 +1000 |
commit | 9298f610f6f26425db36d8727ad533d660a6c5d6 (patch) | |
tree | 53c6f257f99c7e35c0975744edf5ca7d4e10818f /event.c | |
parent | 638df31ca462b032d59bde586254be5f3dc21e35 (diff) |
Add support for specifying event handler for calling job in command supstitution. Add psub shellscript function for process substitution
darcs-hash:20051015005126-ac50b-d2aedca3a50a78362502f3fa9dd8bf25cb7dc6e1.gz
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -95,6 +95,9 @@ static int event_match( event_t *class, event_t *instance ) if( class->param1.pid == EVENT_ANY_PID ) return 1; return class->param1.pid == instance->param1.pid; + + case EVENT_JOB_ID: + return class->param1.job_id == instance->param1.job_id; } /** @@ -180,7 +183,6 @@ void event_remove( event_t *criterion ) signal_handle( e.param1.signal, 0 ); } } - } else { @@ -292,7 +294,7 @@ static void event_fire_internal( event_t *event, array_list_t *arguments ) al_push( fire, criterion ); } } - + /* No matches. Time to return. */ @@ -362,7 +364,7 @@ static void event_fire_internal( event_t *event, array_list_t *arguments ) } /** - Perform all pending signal events + Handle all pending signal events */ static void event_fire_signal_events() { |