Move jobs from one host to another

Use lsb_mig() to migrate a job from one host to another.

int lsb_mig(mig, badHostIdx);
struct submig *mig;           Job to be migrated
int    *badHostIdx;

If the call fails, (**askedHosts)[*badHostIdx] is not a host known to the LSF system.

lsf.batch.h defines the struct submig to hold the details of the job to be migrated. It has the following fields:

struct submig {
    LS_LONG_INT jobId;           Job ID to be migrated
    int         options;
    int         numAskedHosts;   Number of hosts supplied for migration
    char        **askedHosts;    Array of pointers to the hosts
};

For the values of options, see the options field of struct submit used in lsb_submit() function call.

On success, lsb_mig() returns 0. On failure, it returns -1 and sets lsberrno to the usual error.