Commit 31d3a9fa authored by runge's avatar runge

small tweaks, -sig alias.

parent be2b77f2
x11vnc README file Date: Fri Sep 15 11:12:28 EDT 2006 x11vnc README file Date: Fri Sep 15 12:06:02 EDT 2006
The following information is taken from these URLs: The following information is taken from these URLs:
...@@ -10518,7 +10518,10 @@ Options: ...@@ -10518,7 +10518,10 @@ Options:
However, for convenience you can use it to ignore other However, for convenience you can use it to ignore other
signals, e.g. "-sigpipe ignore:HUP,INT,TERM" in case signals, e.g. "-sigpipe ignore:HUP,INT,TERM" in case
that would be useful for some sort of application. that would be useful for some sort of application.
You can also put "exit:.." in there. You can also put "exit:.." in the list to have x11vnc
cleanup on the listed signals. "-sig" is an alias
for this option if you don't like the 'pipe'. Example:
-sig ignore:INT,TERM,exit:USR1
-threads Whether or not to use the threaded libvncserver -threads Whether or not to use the threaded libvncserver
-nothreads algorithm [rfbRunEventLoop] if libpthread is available -nothreads algorithm [rfbRunEventLoop] if libpthread is available
......
...@@ -2392,7 +2392,10 @@ void print_help(int mode) { ...@@ -2392,7 +2392,10 @@ void print_help(int mode) {
" However, for convenience you can use it to ignore other\n" " However, for convenience you can use it to ignore other\n"
" signals, e.g. \"-sigpipe ignore:HUP,INT,TERM\" in case\n" " signals, e.g. \"-sigpipe ignore:HUP,INT,TERM\" in case\n"
" that would be useful for some sort of application.\n" " that would be useful for some sort of application.\n"
" You can also put \"exit:..\" in there.\n" " You can also put \"exit:..\" in the list to have x11vnc\n"
" cleanup on the listed signals. \"-sig\" is an alias\n"
" for this option if you don't like the 'pipe'. Example:\n"
" -sig ignore:INT,TERM,exit:USR1\n"
"\n" "\n"
"-threads Whether or not to use the threaded libvncserver\n" "-threads Whether or not to use the threaded libvncserver\n"
"-nothreads algorithm [rfbRunEventLoop] if libpthread is available\n" "-nothreads algorithm [rfbRunEventLoop] if libpthread is available\n"
......
...@@ -2819,7 +2819,10 @@ is doing the correct thing now for quite some time. ...@@ -2819,7 +2819,10 @@ is doing the correct thing now for quite some time.
However, for convenience you can use it to ignore other However, for convenience you can use it to ignore other
signals, e.g. "\fB-sigpipe\fR \fIignore:HUP,INT,TERM\fR" in case signals, e.g. "\fB-sigpipe\fR \fIignore:HUP,INT,TERM\fR" in case
that would be useful for some sort of application. that would be useful for some sort of application.
You can also put "exit:.." in there. You can also put "exit:.." in the list to have x11vnc
cleanup on the listed signals. "\fB-sig\fR" is an alias
for this option if you don't like the 'pipe'. Example:
\fB-sig\fR ignore:INT,TERM,exit:USR1
.PP .PP
\fB-threads,\fR \fB-nothreads\fR \fB-threads,\fR \fB-nothreads\fR
.IP .IP
......
...@@ -2160,7 +2160,7 @@ int main(int argc, char* argv[]) { ...@@ -2160,7 +2160,7 @@ int main(int argc, char* argv[]) {
if (f >= 0.0) { if (f >= 0.0) {
xdamage_memory = f; xdamage_memory = f;
} }
} else if (!strcmp(arg, "-sigpipe")) { } else if (!strcmp(arg, "-sigpipe") || !strcmp(arg, "-sig")) {
CHECK_ARGC CHECK_ARGC
if (known_sigpipe_mode(argv[++i])) { if (known_sigpipe_mode(argv[++i])) {
sigpipe = strdup(argv[i]); sigpipe = strdup(argv[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment