Switch to unified view

a/src/execmd.h b/src/execmd.h
1
/* Copyright (C) 2004 J.F.Dockes
1
/* Copyright (C) 2004-2018 J.F.Dockes
2
 *   This program is free software; you can redistribute it and/or modify
2
 *   This program is free software; you can redistribute it and/or modify
3
 *   it under the terms of the GNU General Public License as published by
3
 *   it under the terms of the GNU General Public License as published by
4
 *   the Free Software Foundation; either version 2 of the License, or
4
 *   the Free Software Foundation; either version 2 of the License, or
5
 *   (at your option) any later version.
5
 *   (at your option) any later version.
6
 *
6
 *
...
...
114
     * There is currently no option to put stderr data into a program variable
114
     * There is currently no option to put stderr data into a program variable
115
     * If the parameter can't be opened for writing, the command's
115
     * If the parameter can't be opened for writing, the command's
116
     * stderr will be closed.
116
     * stderr will be closed.
117
     */
117
     */
118
    void setStderr(const std::string& stderrFile);
118
    void setStderr(const std::string& stderrFile);
119
120
    /**
121
     * Set kill wait timeout. This is the maximum time we'll wait for
122
     * the command after sending a SIGTERM, before sending a SIGKILL.
123
124
     * @param mS the maximum number of mS to wait. Note that values
125
     *    below 1000 mS make no sense as the program will sleep for
126
     *    longer time before retrying the waitpid(). Use -1 for
127
     *    forever (bad idea), 0 for absolutely no pity.
128
     */
129
     void setKillTimeout(int mS);
119
130
120
    /**
131
    /**
121
     * Execute command.
132
     * Execute command.
122
     *
133
     *
123
     * Both input and output can be specified, and asynchronous
134
     * Both input and output can be specified, and asynchronous