Beanstalk is a simple, fast work queue.
Clone or download
etanol and JensRantil Properly catch and report getaddrinfo() errors
The getaddrinfo() function does not behave like a system call.  In particular,
the only successful return value is zero; any other value should be considered a
failure, not only -1.

This commit fixes a segfault caused by an invalid value of the "-l" command line
option.

Closes #254 and fixes #253.
Latest commit b5a6f7a Nov 8, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adm Update upstart script to use "setuid" instead of "su nobody -c" Apr 3, 2016
ct update ct Apr 3, 2016
doc fix critical translation error Aug 19, 2018
pkg add release instructions Aug 5, 2014
.gitignore update ct; refine gitignore Jun 4, 2013
.travis.yml Travis: stifle progress on git clone Aug 19, 2018
Contributing add contribution guidelines Apr 4, 2016
LICENSE switch to MIT license Jan 26, 2012
Makefile Makefile: finish DESTDIR support Apr 3, 2016
README Correct spelling mistake. (#370) Dec 23, 2017
conn.c fix crash from Conn use after free and double-free Mar 18, 2013
darwin.c correctly check for hangup during reserve Oct 19, 2012
dat.h delete unused function. It's defined but never used. Aug 19, 2018
file.c Typo Jan 28, 2013
freebsd.c refactor Oct 8, 2012
heap.c clean up copyright notices May 10, 2011
job.c delete unused function. It's defined but never used. Aug 19, 2018
linux.c Use ftruncate() as it's much more portable (#341) Aug 19, 2018
main.c fix brace placement Apr 3, 2016
ms.c clean up copyright notices May 10, 2011
net.c Properly catch and report getaddrinfo() errors Aug 19, 2018
primes.c shrink the hashmap when it's too sparse Apr 12, 2016
prot.c pause-tube should check tube name is ok Apr 3, 2016
sd-daemon.c Fix headers for MUSL compatibility Aug 19, 2018
sd-daemon.h Support systemd socket activation. Sep 21, 2010
serv.c adaptive epoll/kqueue timeout Mar 14, 2013
testheap.c some basic benchmark tests Jun 4, 2013
testjobs.c some basic benchmark tests Jun 4, 2013
testserv.c update ct; test throughput in MB/s Jun 6, 2013
testutil.c refactor Apr 15, 2013
time.c clean up copyright notices May 10, 2011
tube.c initialize allocations to 0; remove redundancy Jan 26, 2012
util.c rephrase wal to "write-ahead log" in cli Apr 3, 2016
verc.sh refactor Oct 8, 2012
vers.sh distribute directly from git archive Apr 14, 2013
walg.c delete unused param max in walread Apr 3, 2016

README

This is beanstalkd, a fast, general-purpose work queue.
See http://kr.github.io/beanstalkd/ for general info.


QUICK START

    $ make
    $ ./beanstalkd


also try,

    $ ./beanstalkd -h
    $ ./beanstalkd -VVV
    $ make CFLAGS=-O2
    $ make CC=clang
    $ make check
    $ make install
    $ make install PREFIX=/usr

Requires Linux (2.6.17 or later), Mac OS X, or FreeBSD.
See doc/protocol.txt for details of the network protocol.

Uses ronn to generate the manual.
See http://github.com/rtomayko/ronn.


SUBDIRECTORIES

adm	files useful for system administrators
ct	testing tool; see https://github.com/kr/ct
doc	documentation
pkg	miscellaneous files for packagers


TESTS

Unit tests are in test*.c. See https://github.com/kr/ct for
information on how to write them.


Copyright © 2007-2013 the authors of beanstalkd.
Copyright in contributions to beanstalkd is retained
by the original copyright holder of each contribution.
See file LICENSE for terms of use.