diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-03-23 21:37:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-03-23 21:37:17 +0100 |
commit | 212bafd6109eb01654065527a8dd55206ecaf535 (patch) | |
tree | 6ffc9a7449c2bb4dd8f9862bb439c358152d265a /src/fork-detect.h | |
parent | febbf740799d85dfbdca965efa9867fd70fa2cfc (diff) |
Detect forks
Some really stupid applications (Hey, vim, that means you!)
love to fork after initializing gtk/libcanberra. This is really
bad style. We however have to deal with this cleanly, so we try
to detect the forks making sure all our calls fail cleanly
after the fork.
Diffstat (limited to 'src/fork-detect.h')
-rw-r--r-- | src/fork-detect.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/fork-detect.h b/src/fork-detect.h new file mode 100644 index 0000000..9050ef8 --- /dev/null +++ b/src/fork-detect.h @@ -0,0 +1,26 @@ +#ifndef foocanberraforkdetecth +#define foocanberraforkdetecth + +/*** + This file is part of libcanberra. + + Copyright 2009 Lennart Poettering + + libcanberra is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 2.1 of the + License, or (at your option) any later version. + + libcanberra is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with libcanberra. If not, see + <http://www.gnu.org/licenses/>. +***/ + +int ca_detect_fork(void); + +#endif |