GEARMAN_WORKER_ERRNO(3)
β¨ NAME β¨
gearman_worker_errno β it's a Gearmand thing bestie, the official docs live at <http://gearman.info/> π
This page is in section 3 of the manual, so if you were looking for it in the group chat of man pages, it's GEARMAN_WORKER_ERRNO(3) π«Ά
πΈ SYNOPSIS πΈ
Okay so first you gotta pull in the header:
#include <libgearman/gearman.h>
then these two cuties are yours:
const char *gearman_worker_error(const gearman_worker_st *worker)
int gearman_worker_errno(gearman_worker_st *worker)
and when you're compiling, you literally have to link with -lgearman or nothing works, periodt.
π DESCRIPTION π
So gearman_worker_error() and gearman_worker_errno() are the duo that reports on the last errors that the worker reported/stored inside the gearman_worker_st. Like, they're telling you what went wrong most recently, no cap.
And if you're the type of person who wants to record all the errors, not just the latest one? Then bestie you want gearman_worker_set_log_fn() instead. That's your girl for that job. π
π¦ RETURN VALUE π¦
gearman_worker_errno() returns the last errno that the worker recorded. That's the tea. β
π HOME π
Wanna know more? Go check out: <http://gearman.info/> β it's giving main character energy, fr fr.
See also:
π Author π
Data Differential <http://www.datadifferential.com/> β icons, honestly.
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/
Okay that's the whole page, you made it, I'm so proud of you π₯Ήβ¨ This was version 1.1.21+ds, dated Feb 04, 2026, and it came from the Gearmand manual, section 3. Slay, bye bestie ππΈπ¦
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms