A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model-checker : abort if popen failed
[simgrid.git]
/
src
/
mc
/
mc_checkpoint.c
diff --git
a/src/mc/mc_checkpoint.c
b/src/mc/mc_checkpoint.c
index
d816cdb
..
7959f8a
100644
(file)
--- a/
src/mc/mc_checkpoint.c
+++ b/
src/mc/mc_checkpoint.c
@@
-297,8
+297,10
@@
void get_libsimgrid_plt_section(){
fp = popen(command, "r");
fp = popen(command, "r");
- if(fp == NULL)
+ if(fp == NULL)
{
perror("popen failed");
perror("popen failed");
+ xbt_abort();
+ }
while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {
while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {
@@
-353,8
+355,10
@@
void get_binary_plt_section(){
fp = popen(command, "r");
fp = popen(command, "r");
- if(fp == NULL)
+ if(fp == NULL)
{
perror("popen failed");
perror("popen failed");
+ xbt_abort();
+ }
while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {
while ((read = getline(&line, &n, fp)) != -1 && plt_not_found == 1) {