Reputation: 939
I have an application, it runs as a daemon using the fork function.
int pid = fork();
if (pid != 0) {
return 0;
}
If run it from the console, everything works correctly. but if buildbot does this using the ShellCommand, then it waits for the daemon to terminate.
How it is done... qmake
generates a MakeFile
with the target release
, the target release
in turn launches my daemon.
release.commands = daemon
QMAKE_EXTRA_TARGETS += release
If you run qmake
with the console then make release
, then everything works correctly.
steps.ShellCommand(
command= ['make', 'release'],
doStepIf = lambda step : isRelease(step) and isLinux(step),
name = 'release Linux',
haltOnFailure = True,
description = 'release project',
)
Tell me how to run the daemon from BuildBot?
Upvotes: 1
Views: 91