---
name: "gearman_worker_errno"
section: "3"
platform: "linux"
package: "gearmand"
version: "2.2.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gearman_worker_errno"
---

# gearman\_worker\_errno(3)

Gearmand Documentation, https://gearman.org/gearmand/

## NAME

gearman\_worker\_errno - Gearmand Documentation, https://gearman.org/gearmand/

## SYNOPSIS

\#include \<libgearman/gearman.h\>

- **const char \*gearman\_worker\_error(const *gearman\_worker\_st* \*worker)**

  - **int gearman\_worker\_errno(*gearman\_worker\_st* \*worker)**

  Link with -lgearman

## DESCRIPTION

*gearman\_worker\_error()* and *gearman\_worker\_errno()* report on the last errors that the worker reported/stored in *gearman\_worker\_st*. If you are interested in recording all errors please see *gearman\_worker\_set\_log\_fn()*.

## RETURN VALUE

*gearman\_worker\_errno()* returns the last **errno** that the worker recorded.

## HOME

To find out more information please check: *https://gearman.org/gearmand/*

**SEE ALSO:**

**[gearmand(8)](/gearmand/8.md)** **[libgearman(3)](/libgearman/3.md)**

## AUTHOR

Data Differential http://www.datadifferential.com/

## COPYRIGHT

2011-2014, Data Differential, http://www.datadifferential.com/
