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
625b1f9d
...
625b1f9da4b87856b5bc288003c72b535160994b
authored
2002-11-21 13:50:21 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed exit functions.
1 parent
32960d03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
pop3d/testsuite/lib/pop3d.exp
pop3d/testsuite/lib/pop3d.exp
View file @
625b1f9
...
...
@@ -58,6 +58,7 @@ proc default_pop3d_start {args} {
global MU_TOOL
global MU_TOOL_FLAGS
global expect_out
global pop3d_spawn_id
mu_version
...
...
@@ -81,8 +82,8 @@ proc default_pop3d_start {args} {
set pop3d_cmd
"
$
MU_TOOL
$sw
"
verbose
"Spawning
$pop3d
_cmd"
set
res
[
remote_spawn host
$pop3d
_cmd
]
if
{
$
res
< 0 ||
$res
==
""
}
{
set
pop3d_spawn_id
[
remote_spawn host
$pop3d
_cmd
]
if
{
$
pop3d
_spawn_id < 0 ||
$pop3d
_spawn_id
==
""
}
{
perror
"Spawning
$pop3d
_cmd failed."
return 1
;
}
...
...
@@ -100,9 +101,16 @@ proc default_pop3d_start {args} {
}
proc
default_pop3d_stop
{}
{
verbose
"Stopping pop3d"
set res
[
pop3d_send
"quit
\n
"
]
mu_expect 360
{
-re
"
\\
+OK.*
$
"
{
}
default
{
perror
"quit failed"
exit 1
}
}
remote_close host
return res
}
proc
pop3d_start
{
args
}
{
...
...
@@ -133,7 +141,11 @@ proc pop3d_start {args} {
}
proc pop3d_stop
{}
{
return
[
default_pop3d_stop
];
global pop3d_spawn_id
if
{[
info
exists pop3d_spawn_id
]
&&
$pop3d
_spawn_id > 0
}
{
default_pop3d_stop
unset pop3d_spawn_id
}
}
##
...
...
@@ -147,15 +159,7 @@ proc pop3d_command { cmd } {
}
proc
pop3d_exit
{}
{
set res
[
pop3d_send
"quit
\n
"
]
mu_expect 360
{
-re
"
\\
+OK.*
$
"
{
}
default
{
perror
"quit failed"
exit 1
}
}
return res
pop3d_stop
}
proc
pop3d_auth
{
args
}
{
...
...
Please
register
or
sign in
to post a comment