summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-rawhide/man3/sd_event_exit.3
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/fedora-rawhide/man3/sd_event_exit.3')
-rw-r--r--upstream/fedora-rawhide/man3/sd_event_exit.328
1 files changed, 15 insertions, 13 deletions
diff --git a/upstream/fedora-rawhide/man3/sd_event_exit.3 b/upstream/fedora-rawhide/man3/sd_event_exit.3
index 822ef7f7..93d49168 100644
--- a/upstream/fedora-rawhide/man3/sd_event_exit.3
+++ b/upstream/fedora-rawhide/man3/sd_event_exit.3
@@ -1,5 +1,5 @@
'\" t
-.TH "SD_EVENT_EXIT" "3" "" "systemd 255" "sd_event_exit"
+.TH "SD_EVENT_EXIT" "3" "" "systemd 256~rc3" "sd_event_exit"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -53,9 +53,17 @@ If
is invoked a second time while the event loop is still processing exit event sources, the exit code stored in the event loop object is updated, but otherwise no further operation is executed\&.
.PP
\fBsd_event_get_exit_code()\fR
-may be used to query the exit code passed into
+may be used to query the exit code passed to an earlier call of
+\fBsd_event_exit()\fR\&. The return parameter
+\fIcode\fR
+may be set to
+\fBNULL\fR, in order to simply check if
\fBsd_event_exit()\fR
-earlier\&.
+has been called before (as
+\fBsd_event_get_exit_code()\fR
+fails with
+\fB\-ENODATA\fR
+if that\*(Aqs not the case, see below)\&.
.PP
While the full positive and negative integer ranges may be used for the exit code, care should be taken not pick exit codes that conflict with regular exit codes returned by
\fBsd_event_loop()\fR, if these exit codes shall be distinguishable\&.
@@ -97,7 +105,9 @@ The event loop has exited already and all exit handlers are already processed\&.
.PP
\fB\-ENODATA\fR
.RS 4
-The event loop has not been requested to exit yet\&.
+Returned by
+\fBsd_event_get_exit_code()\fR
+in case the event loop has not been requested to exit yet\&.
.RE
.SH "NOTES"
.PP
@@ -119,12 +129,4 @@ and
were added in version 229\&.
.SH "SEE ALSO"
.PP
-\fBsystemd\fR(1),
-\fBsd-event\fR(3),
-\fBsd_event_new\fR(3),
-\fBsd_event_add_exit\fR(3),
-\fBsd_event_add_time\fR(3),
-\fBsd_event_add_signal\fR(3),
-\fBsd_event_add_io\fR(3),
-\fBsd_event_add_defer\fR(3),
-\fBsd_event_add_inotify\fR(3)
+\fBsystemd\fR(1), \fBsd-event\fR(3), \fBsd_event_new\fR(3), \fBsd_event_add_exit\fR(3), \fBsd_event_add_time\fR(3), \fBsd_event_add_signal\fR(3), \fBsd_event_add_io\fR(3), \fBsd_event_add_defer\fR(3), \fBsd_event_add_inotify\fR(3)