Changeset 11233
- Timestamp:
- 08/18/08 15:24:48 (5 months ago)
- Location:
- branches/remote-services/ebox/src
- Files:
-
- 2 modified
-
EBox/RemoteServices/Server/t/jobReceiver.t (modified) (2 diffs)
-
libexec/ebox-runnerd (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/remote-services/ebox/src/EBox/RemoteServices/Server/t/jobReceiver.t
r11232 r11233 42 42 } 43 43 44 my $jobId = 1 ;44 my $jobId = 12321; 45 45 my $args = 'test1'; 46 46 my @coolParams = (jobId => $jobId, … … 74 74 _testCmd($cmd, $jobDirPath, $args); 75 75 76 #system("rm -rf $jobDirPath");76 system("rm -rf $jobDirPath"); -
branches/remote-services/ebox/src/libexec/ebox-runnerd
r11232 r11233 120 120 121 121 $inotify->watch(INCOMING_DIR, IN_CREATE, $incomingSub); 122 $inotify->watch(INCOMING_DIR, IN_DELETE_SELF, sub {}); 122 123 # Run those directories which have not run previously 123 124 _runRemainder(); … … 128 129 last; 129 130 } 130 $_->{w}{cb} foreach(@events); 131 foreach my $evt (@events) { 132 if ( $evt->IN_DELETE_SELF ) { 133 EBox::warn(INCOMING_DIR . " has been deleted! Stopping daemon..."); 134 exit(0); 135 } 136 $evt->{w}{cb}; 137 } 131 138 } 132 139
