mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
shmem: fix some issues with the exec setting
This commit is contained in:
parent
070a76b153
commit
8f61d4f2a9
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,7 @@ int shmem_parse(struct node *n, json_t *cfg)
|
|||
size_t index;
|
||||
json_t *json_val;
|
||||
json_array_foreach(json_exec, index, json_val) {
|
||||
val = json_string_value(json_exec);
|
||||
val = json_string_value(json_val);
|
||||
if (!val)
|
||||
error("Setting 'exec' of node %s must be an array of strings", node_name(n));
|
||||
|
||||
|
@ -92,6 +92,8 @@ int shmem_open(struct node *n)
|
|||
ret = spawn(shm->exec[0], shm->exec);
|
||||
if (!ret)
|
||||
serror("Failed to spawn external program");
|
||||
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
ret = shmem_int_open(shm->out_name, shm->in_name, &shm->intf, &shm->conf);
|
||||
|
|
Loading…
Add table
Reference in a new issue