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.

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