A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
hpcvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding missing handler when a restart crash.
[hpcvm.git]
/
src
/
and
/
hpcvm
/
Client.java
diff --git
a/src/and/hpcvm/Client.java
b/src/and/hpcvm/Client.java
index
662944e
..
232a58c
100644
(file)
--- a/
src/and/hpcvm/Client.java
+++ b/
src/and/hpcvm/Client.java
@@
-1245,7
+1245,7
@@
public class Client extends UnicastRemoteObject implements ServicesClient
while( (line = br.readLine()) != null )
{
System.err.println( line ) ;
while( (line = br.readLine()) != null )
{
System.err.println( line ) ;
- if( line.contains( "egmentation" ) )
+ if( line.contains( "egmentation" )
|| _p.exitValue() == 139
)
{
ret = true ;
}
{
ret = true ;
}
@@
-1258,6
+1258,13
@@
public class Client extends UnicastRemoteObject implements ServicesClient
return ret ;
}
return ret ;
}
+
+ @Override
+ public int echo()
+ {
+ return 0 ;
+ }
+
@Override
public int start()
@Override
public int start()
@@
-1479,7
+1486,13
@@
public class Client extends UnicastRemoteObject implements ServicesClient
saveRequest.setStatus( false ) ;
/* Requesting the VM save */
saveRequest.setStatus( false ) ;
/* Requesting the VM save */
- saveVM() ;
+ if( saveVM() == 1 )
+ {
+ System.err.println( "Problem while saving. Exiting ..." ) ;
+ pingServer.stopPing() ;
+ emergencyStop() ;
+ System.exit( 1 ) ;
+ }
} else {
sendSaveOkVM() ;
}
} else {
sendSaveOkVM() ;
}