diff options
author | Thomas White <taw@physics.org> | 2013-02-22 17:39:02 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-02-22 17:39:02 +0100 |
commit | 14ae5be04e0564781b54c166c0587616eed3bb9e (patch) | |
tree | edf37c370270fd36fa4df94a8a946554e166f65d /libcrystfel | |
parent | 4aa91c60850afd173778d9636a9497d54d52dbd2 (diff) |
Don't write command when restarting a worker process
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 3c10c543..c6d88629 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -571,6 +571,8 @@ void write_command(Stream *st, int argc, char *argv[]) { int i; + if ( argc == 0 ) return; + for ( i=0; i<argc; i++ ) { if ( i > 0 ) fprintf(st->fh, " "); fprintf(st->fh, "%s", argv[i]); |