|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
|
... |
|
... |
68 |
* of concerns with multithreaded programs).
|
68 |
* of concerns with multithreaded programs).
|
69 |
*
|
69 |
*
|
70 |
*/
|
70 |
*/
|
71 |
class ExecCmd {
|
71 |
class ExecCmd {
|
72 |
public:
|
72 |
public:
|
73 |
// Use vfork instead of fork. This must not be called in a multithreaded
|
73 |
// Use vfork instead of fork. Our vfork usage is multithread-compatible as
|
74 |
// program.
|
74 |
// far as I can see, but just in case...
|
75 |
static void useVfork(bool on)
|
75 |
static void useVfork(bool on);
|
76 |
{
|
76 |
|
77 |
o_useVfork = on;
|
|
|
78 |
}
|
|
|
79 |
/**
|
77 |
/**
|
80 |
* Add/replace environment variable before executing command. This must
|
78 |
* Add/replace environment variable before executing command. This must
|
81 |
* be called before doexec() to have an effect (possibly multiple
|
79 |
* be called before doexec() to have an effect (possibly multiple
|
82 |
* times for several variables).
|
80 |
* times for several variables).
|
83 |
* @param envassign an environment assignment string ("name=value")
|
81 |
* @param envassign an environment assignment string ("name=value")
|