summaryrefslogtreecommitdiff
path: root/static/openbsd/man3/fuse_set_signal_handlers.3
blob: 576819a23be2dc6fe88ea4ae35966e10700bac1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\" $OpenBSD: fuse_set_signal_handlers.3,v 1.4 2025/09/23 09:28:28 schwarze Exp $
.\"
.\" Copyright (c) 2018 Helg Bredow <helg@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd $Mdocdate: September 23 2025 $
.Dt FUSE_SET_SIGNAL_HANDLERS 3
.Os
.Sh NAME
.Nm fuse_set_signal_handlers ,
.Nm fuse_remove_signal_handlers
.Nd install and remove FUSE signal handlers
.Sh SYNOPSIS
.Lb libfuse
.In fuse.h
.Ft int
.Fn fuse_set_signal_handlers "struct fuse_session *se"
.Ft void
.Fn fuse_remove_signal_handlers "struct fuse_session *se"
.Sh DESCRIPTION
.Fn fuse_set_signal_handlers
installs signal handlers for the signals
.Dv SIGHUP ,
.Dv SIGINT ,
and
.Dv SIGTERM
that will attempt to unmount the file system.
.Dv SIGPIPE
will be ignored.
If there is already a signal handler installed for any of these signals
then it is not replaced.
.Pp
.Fn fuse_remove_signal_handlers
restores the default signal handlers for any signals that were
installed by
.Fn fuse_set_signal_handlers .
.Sh RETURN VALUES
.Fn fuse_set_signal_handlers
returns 0 on success or -1 on failure.
.Sh SEE ALSO
.Xr sigaction 2 ,
.Xr fuse_setup 3
.Sh STANDARDS
The
.Fn fuse_set_signal_handlers
and
.Fn fuse_remove_signal_handlers
functions conform to FUSE 2.6.
.Sh HISTORY
The
.Fn fuse_set_signal_handlers
and
.Fn fuse_remove_signal_handlers
functions first appeared in
.Ox 5.4 .
.Sh AUTHORS
.An Helg Bredow Aq Mt helg@openbsd.org