remove unnecessary createworker function
This commit is contained in:
parent
9aedb06c03
commit
7963754379
@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
createworker() {
|
|
||||||
worker $1 &
|
|
||||||
workers[$1]=$!
|
|
||||||
}
|
|
||||||
@ -262,7 +262,8 @@ master() {
|
|||||||
workerid=$(getworkerid)
|
workerid=$(getworkerid)
|
||||||
workertasks[workerid]=$taskid
|
workertasks[workerid]=$taskid
|
||||||
Update tasks status 1 <<<"id = $taskid"
|
Update tasks status 1 <<<"id = $taskid"
|
||||||
createworker $workerid
|
worker $workerid &
|
||||||
|
workers[$workerid]=$!
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user