Skip to content

Commit 402e08c

Browse files
committed
Added section about the installation location
1 parent 44aae42 commit 402e08c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

doc/man/libdontdie.7

+21
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,32 @@ different sockets.
101101
....
102102
setenv("DD_TCP_KEEPALIVE_TIME", 180);
103103
socket(...);
104+
.SH INSTALLATION LOCATION
105+
Depending on the installation method or the distribution, the
106+
installation directory of
107+
.B libdontdie
108+
might differ.
109+
.P
110+
One way to get the installation directory is using the packet manager
111+
to list all files of the packet (like 'dpkg -L <package_name>').
112+
.P
113+
Typically the library is installed in a directory under /usr/lib,
114+
/usr/lib64, or /usr/lib/<triple>. A typical triple
115+
is 'x86_64-linux-gnu'. Under Debian it is possible to get
116+
the triple with the command
117+
.sp
118+
.RS
119+
.nf
120+
dpkg-architecture -qDEB_HOST_GNU_TYPE
104121
.SH USAGE
105122
All parameters are passed in as environment variables. The
106123
.B libdontdie
107124
itself is preloaded.
108125
.P
126+
The example assumes, that the library is installed
127+
under '/usr/lib/libdontdie.so'. This might be replaced by the real
128+
installation path.
129+
.P
109130
Example: to run the java program EchoClient with special TCP KEEP
110131
ALIVE setting, use:
111132
.sp

0 commit comments

Comments
 (0)