Skip to content

Commit

Permalink
Remove trailing whitespace + make shipit happy with Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
plu authored and nightsailer committed Aug 20, 2010
1 parent d5f3805 commit ebebf5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Revision history for Gearman-Driver

0.02006 Mon May 10 2010
TBD. to make shipit work properly
- Add --daemonize , let gearman-driver run as daemon
- Gearman::XS worker run in non-blocking I/O mode, reduce CPU resource a bit.
- Don't use Gearman::XS 0.9, this will broken compatible with PHP client.
Expand Down
4 changes: 2 additions & 2 deletions lib/Gearman/Driver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,9 @@ sub run {
my ($self) = @_;
push @INC, @{ $self->lib };
$self->load_namespaces;

$self->_daemonize if $self->daemonize;

$self->_start_observer;
$self->_start_console;
$self->_start_session;
Expand Down
4 changes: 2 additions & 2 deletions lib/Gearman/Driver/Adaptor/XS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ sub add_function {

sub work {
my ($self) = @_;

$self->worker->add_options(GEARMAN_WORKER_NON_BLOCKING);

while (1) {
my $ret = $self->worker->work;
if ($ret == GEARMAN_IO_WAIT || $ret == GEARMAN_NO_JOBS ) {
Expand Down

0 comments on commit ebebf5f

Please sign in to comment.