aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-08-31 12:51:33 +0200
committerThomas White <taw@physics.org>2017-08-31 12:51:33 +0200
commite4a8cd53ca3534a90ef4e8c78aea852bae05d88d (patch)
tree3c8887c85a9ea62a48bb0dbb77f9c650fe2e8399 /libcrystfel
parent62898319b6c59e251685438e3a0ea77eacc8114b (diff)
Set first argument when running external indexing programs
This makes sure they have names in process displays.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/dirax.c2
-rw-r--r--libcrystfel/src/felix.c2
-rw-r--r--libcrystfel/src/mosflm.c4
-rw-r--r--libcrystfel/src/xds.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c
index e9466a24..b263eea0 100644
--- a/libcrystfel/src/dirax.c
+++ b/libcrystfel/src/dirax.c
@@ -562,7 +562,7 @@ int run_dirax(struct image *image, void *ipriv)
t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
tcsetattr(STDIN_FILENO, TCSANOW, &t);
- execlp("dirax", "", (char *)NULL);
+ execlp("dirax", "dirax", (char *)NULL);
ERROR("Failed to invoke DirAx.\n");
_exit(0);
diff --git a/libcrystfel/src/felix.c b/libcrystfel/src/felix.c
index b531e3af..6daf4408 100644
--- a/libcrystfel/src/felix.c
+++ b/libcrystfel/src/felix.c
@@ -479,7 +479,7 @@ int felix_index(struct image *image, IndexingPrivate *ipriv)
tcsetattr(STDIN_FILENO, TCSANOW, &t);
STATUS("Running Felix '%s'\n", ini_filename);
- execlp("Felix", "", ini_filename, (char *)NULL);
+ execlp("Felix", "Felix", ini_filename, (char *)NULL);
ERROR("Failed to invoke Felix.\n");
_exit(0);
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index a8e6e119..edf8524e 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -764,8 +764,8 @@ int run_mosflm(struct image *image, void *ipriv)
t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
tcsetattr(STDIN_FILENO, TCSANOW, &t);
- execlp("mosflm", "", (char *)NULL);
- execlp("ipmosflm", "", (char *)NULL);
+ execlp("mosflm", "mosflm", (char *)NULL);
+ execlp("ipmosflm", "ipmosflm", (char *)NULL);
ERROR("Invocation: Failed to invoke MOSFLM: %s\n",
strerror(errno));
_exit(0);
diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c
index 8a7daab7..093b9160 100644
--- a/libcrystfel/src/xds.c
+++ b/libcrystfel/src/xds.c
@@ -549,7 +549,7 @@ int run_xds(struct image *image, void *priv)
t.c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
tcsetattr(STDIN_FILENO, TCSANOW, &t);
- execlp("xds", "", (char *)NULL);
+ execlp("xds", "xds", (char *)NULL);
ERROR("Failed to invoke XDS.\n");
_exit(0);