Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
2d3adacf
...
2d3adacf60a8eb546979ef9dc8965a8fcafca41d
authored
2004-04-26 20:58:32 +0000
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added new pidfile option.
1 parent
95b88948
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
mailbox/mu_argp.c
mailbox/mu_argp.c
View file @
2d3adac
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002, 2003
, 2004
Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
...
...
@@ -120,8 +120,10 @@ static struct argp_option mu_daemon_argp_option[] = {
N_
(
"Set idle timeout value to NUMBER seconds"
),
0
},
{
"transcript"
,
'x'
,
NULL
,
0
,
N_
(
"output session transcript via syslog"
),
0
},
{
"pidfile"
,
'P'
,
N_
(
"FILE"
),
0
,
N_
(
"Set PID file"
),
0
},
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
};
};
static
error_t
mu_common_argp_parser
__P
((
int
key
,
char
*
arg
,
struct
argp_state
*
state
));
...
...
@@ -520,7 +522,11 @@ mu_daemon_argp_parser (int key, char *arg, struct argp_state *state)
p
->
mode
=
MODE_DAEMON
;
p
->
port
=
strtoul
(
arg
,
NULL
,
10
);
break
;
case
'P'
:
p
->
pidfile
=
arg
;
break
;
case
't'
:
p
->
timeout
=
strtoul
(
arg
,
NULL
,
10
);
break
;
...
...
Please
register
or
sign in
to post a comment