getjid(2)getjid(2)NAMEgetjid - get job ID
SYNOPSIS
#include <sys/resource.h>
jid_t getjid(void);
DESCRIPTION
The getid function returns the job ID associated with the current
process.
ERRORS
Under the following conditions, the getjid function fails returning 0
with the errno set to:
[ENOPKG] The job limits software is not installed.
[ENOJOB] The current process isn't in a job but job limits software
is installed.
SEE ALSOgetjlimit(2), setjlimit(2), killjob(2), makenewjob(2), getjusage(2).
DIAGNOSTICS
Upon successful completion, getjid returns a job ID. If an error occurs,
a value of -1 is returned and errno is set to indicate the error. The
getjid returns a 0 with errno set in two cases: if job limits software is
not installed or job limits software is installed but the current process
is not in a job.
Page 1