Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ec39d655
Commit
ec39d655
authored
Oct 19, 2004
by
Bill Medland
Committed by
Alexandre Julliard
Oct 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a version option to the wineserver.
parent
84ff5dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
main.c
server/main.c
+13
-7
No files found.
server/main.c
View file @
ec39d655
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
*/
#include "config.h"
#include <assert.h>
#include <assert.h>
#include <ctype.h>
#include <ctype.h>
#include <fcntl.h>
#include <fcntl.h>
...
@@ -49,11 +51,12 @@ static void usage(void)
...
@@ -49,11 +51,12 @@ static void usage(void)
fprintf
(
stderr
,
"
\n
usage: %s [options]
\n\n
"
,
server_argv0
);
fprintf
(
stderr
,
"
\n
usage: %s [options]
\n\n
"
,
server_argv0
);
fprintf
(
stderr
,
"options:
\n
"
);
fprintf
(
stderr
,
"options:
\n
"
);
fprintf
(
stderr
,
" -d<n> set debug level to <n>
\n
"
);
fprintf
(
stderr
,
" -d<n> set debug level to <n>
\n
"
);
fprintf
(
stderr
,
" -p[n] make server persistent, optionally for n seconds
\n
"
);
fprintf
(
stderr
,
" -f remain in the foreground for debugging
\n
"
);
fprintf
(
stderr
,
" -f remain in the foreground for debugging
\n
"
);
fprintf
(
stderr
,
" -w wait until the current wineserver terminates
\n
"
);
fprintf
(
stderr
,
" -k[n] kill the current wineserver, optionally with signal n
\n
"
);
fprintf
(
stderr
,
" -h display this help message
\n
"
);
fprintf
(
stderr
,
" -h display this help message
\n
"
);
fprintf
(
stderr
,
" -k[n] kill the current wineserver, optionally with signal n
\n
"
);
fprintf
(
stderr
,
" -p[n] make server persistent, optionally for n seconds
\n
"
);
fprintf
(
stderr
,
" -v display version information and exit
\n
"
);
fprintf
(
stderr
,
" -w wait until the current wineserver terminates
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
}
}
...
@@ -79,17 +82,20 @@ static void parse_args( int argc, char *argv[] )
...
@@ -79,17 +82,20 @@ static void parse_args( int argc, char *argv[] )
usage
();
usage
();
exit
(
0
);
exit
(
0
);
break
;
break
;
case
'k'
:
if
(
isdigit
(
argv
[
i
][
2
]))
ret
=
kill_lock_owner
(
atoi
(
argv
[
i
]
+
2
)
);
else
ret
=
kill_lock_owner
(
-
1
);
exit
(
!
ret
);
case
'p'
:
case
'p'
:
if
(
isdigit
(
argv
[
i
][
2
]))
master_socket_timeout
=
atoi
(
argv
[
i
]
+
2
);
if
(
isdigit
(
argv
[
i
][
2
]))
master_socket_timeout
=
atoi
(
argv
[
i
]
+
2
);
else
master_socket_timeout
=
-
1
;
else
master_socket_timeout
=
-
1
;
break
;
break
;
case
'v'
:
fprintf
(
stderr
,
"%s
\n
"
,
PACKAGE_STRING
);
exit
(
0
);
case
'w'
:
case
'w'
:
wait_for_lock
();
wait_for_lock
();
exit
(
0
);
exit
(
0
);
case
'k'
:
if
(
isdigit
(
argv
[
i
][
2
]))
ret
=
kill_lock_owner
(
atoi
(
argv
[
i
]
+
2
)
);
else
ret
=
kill_lock_owner
(
-
1
);
exit
(
!
ret
);
default:
default:
fprintf
(
stderr
,
"wineserver: unknown option '%s'
\n
"
,
argv
[
i
]
);
fprintf
(
stderr
,
"wineserver: unknown option '%s'
\n
"
,
argv
[
i
]
);
usage
();
usage
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment